<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/mtd/ubi/wl.c, branch linux-3.17.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.17.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.17.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2014-07-28T16:07:33Z</updated>
<entry>
<title>UBI: bugfix in ubi_wl_flush()</title>
<updated>2014-07-28T16:07:33Z</updated>
<author>
<name>Richard Weinberger</name>
</author>
<published>2014-07-27T07:35:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=49e236bc4a2639af0e77b3a05460e8367e3187a4'/>
<id>urn:sha1:49e236bc4a2639af0e77b3a05460e8367e3187a4</id>
<content type='text'>
Use the _safe variant because we're iterating over a list where items get
deleted and freed.

Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>UBI: fix ubi free PEBs count calculation</title>
<updated>2014-05-05T06:31:33Z</updated>
<author>
<name>Tanya Brokhman</name>
</author>
<published>2014-04-01T08:02:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3d21bb7667c4b57a15077d60d23385d9a1c01d08'/>
<id>urn:sha1:3d21bb7667c4b57a15077d60d23385d9a1c01d08</id>
<content type='text'>
The ubi-&gt;free_count should be updated with every insert/remove to/from
the ubi-&gt;free list.

Signed-off-by: Tanya Brokhman &lt;tlinder@codeaurora.org&gt;
Reviewed-by: Dolev Raviv &lt;draviv@codeaurora.org&gt;
Acked-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>UBI: fix error path in __wl_get_peb</title>
<updated>2014-05-05T06:31:33Z</updated>
<author>
<name>Tanya Brokhman</name>
</author>
<published>2014-04-01T08:01:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=87ed89d21ede38f86be9419ca7c6dd4761764bbb'/>
<id>urn:sha1:87ed89d21ede38f86be9419ca7c6dd4761764bbb</id>
<content type='text'>
In case of an error (if there are not free PEB's for example),
__wl_get_peb will return a negative value. In order to prevent access
violation we need to test the returned value prior to using it later on.

Signed-off-by: Tatyana Brokhman &lt;tlinder@codeaurora.org&gt;
Reviewed-by: Dolev Raviv &lt;draviv@codeaurora.org&gt;
Acked-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>UBI: fix refill_wl_user_pool()</title>
<updated>2013-10-03T16:42:46Z</updated>
<author>
<name>Richard Weinberger</name>
</author>
<published>2013-09-28T13:55:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fb10e4d418c73096ec61d8e80e2af282a5891039'/>
<id>urn:sha1:fb10e4d418c73096ec61d8e80e2af282a5891039</id>
<content type='text'>
If no free PEBs are available refill_wl_user_pool() must not
return with -ENOSPC immediately.
It has to block till produce_free_peb() produced a free PEB.

Reported-and-Tested-by: Richard Genoud &lt;richard.genoud@gmail.com&gt;
Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>UBI: Fix PEB leak in wear_leveling_worker()</title>
<updated>2013-08-19T15:15:11Z</updated>
<author>
<name>Richard Weinberger</name>
</author>
<published>2013-08-19T06:48:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5ef4414f4bc26a19cfd5cd11aee9697a863e4d51'/>
<id>urn:sha1:5ef4414f4bc26a19cfd5cd11aee9697a863e4d51</id>
<content type='text'>
get_peb_for_wl() removes the PEB from the free list.
If the WL subsystem detects that no wear leveling is needed
it cancels the operation and drops the gained PEB.
In this case we have to put the PEB back into the free list.

This issue was introduced with commit ed4b7021c
(UBI: remove PEB from free tree in get_peb_for_wl()).

Cc: &lt;stable@vger.kernel.org&gt; # 3.7.x
Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>Merge tag 'upstream-3.8-rc1' of git://git.infradead.org/linux-ubi</title>
<updated>2012-12-20T15:39:03Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2012-12-20T15:39:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=85d5b70d8a0681a362d075bf0d19b4ee8c6767ee'/>
<id>urn:sha1:85d5b70d8a0681a362d075bf0d19b4ee8c6767ee</id>
<content type='text'>
Pull UBI update from Artem Bityutskiy:
 "Nothing exciting, just clean-ups and nicification.  Oh, and one small
  optimization which makes UBI to use less RAM."

* tag 'upstream-3.8-rc1' of git://git.infradead.org/linux-ubi:
  UBI: embed ubi_debug_info field in ubi_device struct
  UBI: introduce helpers dbg_chk_{io, gen}
  UBI: replace memcpy with struct assignment
  UBI: remove spurious comment
  UBI: gluebi: rename misleading variables
  UBI: do not allocate the memory unnecessarily
  UBI: use list_move_tail instead of list_del/list_add_tail
</content>
</entry>
<entry>
<title>UBI: introduce helpers dbg_chk_{io, gen}</title>
<updated>2012-12-10T11:38:59Z</updated>
<author>
<name>Ezequiel Garcia</name>
</author>
<published>2012-11-28T12:18:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=64575574f26d7969713ede9bde750c979da4037e'/>
<id>urn:sha1:64575574f26d7969713ede9bde750c979da4037e</id>
<content type='text'>
With this patch code is a bit more readable and there's no
generated code or functionality impact.
Furthermore, this abstracts implementation details and
will allow to change ubi_debug_info in a less invasive way.

Signed-off-by: Ezequiel Garcia &lt;elezegarcia@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>UBI: dont call ubi_self_check_all_ff() in __wl_get_peb()</title>
<updated>2012-12-04T14:04:31Z</updated>
<author>
<name>Richard Weinberger</name>
</author>
<published>2012-12-03T19:57:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=894aef215775b56b725e9dde856b7a8b091ddfcc'/>
<id>urn:sha1:894aef215775b56b725e9dde856b7a8b091ddfcc</id>
<content type='text'>
As ubi_self_check_all_ff() might sleep we are not allowed
to call it from atomic context.
For now we call it only from ubi_wl_get_peb().
There are some code paths where it would also make sense,
but these paths are currently atomic and only enabled
when fastmap is used.

Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>UBI: remove PEB from free tree in get_peb_for_wl()</title>
<updated>2012-12-04T14:04:16Z</updated>
<author>
<name>Richard Weinberger</name>
</author>
<published>2012-12-03T19:57:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ed4b7021cb51fe5a0f260df03298709347a26967'/>
<id>urn:sha1:ed4b7021cb51fe5a0f260df03298709347a26967</id>
<content type='text'>
If UBI is built without fastmap, get_peb_for_wl() has to
remove the PEB manially from the free tree.
Otherwise the requested PEB lives in two trees.

Reported-by: Zach Sadecki &lt;zsadecki@itwatchdogs.com&gt;
Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>UBI: remove spurious comment</title>
<updated>2012-11-30T11:54:41Z</updated>
<author>
<name>Ezequiel Garcia</name>
</author>
<published>2012-11-21T15:46:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=38f92cca8aae5b2e4ff2700c47eee0b807e22980'/>
<id>urn:sha1:38f92cca8aae5b2e4ff2700c47eee0b807e22980</id>
<content type='text'>
This line of comment looks completely bogus.

It was introduced in:
commit d99383b00eba9c6ac3dea462d718b2849012ee03
Author: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
Date:   Wed May 18 14:47:34 2011 +0300

    UBI: change the interface of a debugging check function

Remove it.

Signed-off-by: Ezequiel Garcia &lt;elezegarcia@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
</feed>
