<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/mtd/ubi/kapi.c, branch linux-4.9.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.9.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.9.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2019-12-05T14:34:23Z</updated>
<entry>
<title>ubi: Do not drop UBI device reference before using</title>
<updated>2019-12-05T14:34:23Z</updated>
<author>
<name>Pan Bian</name>
</author>
<published>2018-11-28T03:20:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=360d69da4d74c6418a950b33afa510ca159ee32c'/>
<id>urn:sha1:360d69da4d74c6418a950b33afa510ca159ee32c</id>
<content type='text'>
[ Upstream commit e542087701f09418702673631a908429feb3eae0 ]

The UBI device reference is dropped but then the device is used as a
parameter of ubi_err. The bug is introduced in changing ubi_err's
behavior. The old ubi_err does not require a UBI device as its first
parameter, but the new one does.

Fixes: 32608703310 ("UBI: Extend UBI layer debug/messaging capabilities")
Signed-off-by: Pan Bian &lt;bianpan2016@163.com&gt;
Reviewed-by: Boris Brezillon &lt;boris.brezillon@bootlin.com&gt;
Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>UBI: provide an helper to check whether a LEB is mapped or not</title>
<updated>2016-10-02T20:48:14Z</updated>
<author>
<name>Boris Brezillon</name>
</author>
<published>2016-09-16T14:59:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7554769641da272ea8821194c2efda08a11014b0'/>
<id>urn:sha1:7554769641da272ea8821194c2efda08a11014b0</id>
<content type='text'>
This is part of the process of hiding UBI EBA's internal to other part of
the UBI implementation, so that we can add new information to the EBA
table without having to patch different places in the UBI code.

Signed-off-by: Boris Brezillon &lt;boris.brezillon@free-electrons.com&gt;
Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
</content>
</entry>
<entry>
<title>UBI: add an helper to check lnum validity</title>
<updated>2016-10-02T20:48:14Z</updated>
<author>
<name>Boris Brezillon</name>
</author>
<published>2016-09-16T14:59:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9a5f09ac0ab83e4a965a24edd6cf7cb0303c6dc9'/>
<id>urn:sha1:9a5f09ac0ab83e4a965a24edd6cf7cb0303c6dc9</id>
<content type='text'>
ubi_leb_valid() is here to replace the
lnum &lt; 0 || lnum &gt;= vol-&gt;reserved_pebs checks.

Signed-off-by: Boris Brezillon &lt;boris.brezillon@free-electrons.com&gt;
Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
</content>
</entry>
<entry>
<title>ubi: Don't bypass -&gt;getattr()</title>
<updated>2016-06-14T08:51:42Z</updated>
<author>
<name>Richard Weinberger</name>
</author>
<published>2016-06-12T22:49:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=61edc3f3b51d2d3948029197cfff6fef7d94e939'/>
<id>urn:sha1:61edc3f3b51d2d3948029197cfff6fef7d94e939</id>
<content type='text'>
Directly accessing inode fields bypasses -&gt;getattr()
and can cause problems when the underlying filesystem
does not have the default -&gt;getattr() implementation.

So instead of obtaining the backing inode via d_backing_inode()
use vfs_getattr() and obtain what we need from the kstat struct.

Cc: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Reported-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
</content>
</entry>
<entry>
<title>Revert "mtd: switch ubi_open_volume_path() to vfs_stat()"</title>
<updated>2016-06-14T08:51:42Z</updated>
<author>
<name>Richard Weinberger</name>
</author>
<published>2016-06-12T21:37:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ad022c87187b50f50937bd9bcd1ef312442a89af'/>
<id>urn:sha1:ad022c87187b50f50937bd9bcd1ef312442a89af</id>
<content type='text'>
This reverts commit 322ea0bbf3003df17b6253f76e572c37d79a6810.

vfs_stat() can only be used on user supplied buffers.
UBI's kapi.c is the API to the kernel and therefore vfs_stat()
is inappropriate.

This solves the problem that mounting any UBIFS will immediately
fail with -EINVAL.

Cc: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
</content>
</entry>
<entry>
<title>Merge tag 'upstream-4.7-rc1' of git://git.infradead.org/linux-ubifs</title>
<updated>2016-05-28T01:49:29Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2016-05-28T01:49:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=23a3e178b9f8be3a900c7b11d795e54b4a131af0'/>
<id>urn:sha1:23a3e178b9f8be3a900c7b11d795e54b4a131af0</id>
<content type='text'>
Pull UBI/UBIFS updates from Richard Weinberger:
 "This contains mostly cleanups and minor improvements of UBI and UBIFS"

* tag 'upstream-4.7-rc1' of git://git.infradead.org/linux-ubifs:
  ubifs: ubifs_dump_inode: Fix dumping field bulk_read
  UBI: Fix static volume checks when Fastmap is used
  UBI: Set free_count to zero before walking through erase list
  UBI: Silence an unintialized variable warning
  UBI: Clean up return in ubi_remove_volume()
  UBI: Modify wrong comment in ubi_leb_map function.
  UBI: Don't read back all data in ubi_eba_copy_leb()
  UBI: Add ro-mode sysfs attribute
</content>
</entry>
<entry>
<title>UBI: Modify wrong comment in ubi_leb_map function.</title>
<updated>2016-05-24T13:24:20Z</updated>
<author>
<name>z00189512</name>
</author>
<published>2016-03-29T18:41:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=960b35d06b6d6b377fd47a8a44e41a96f35ce485'/>
<id>urn:sha1:960b35d06b6d6b377fd47a8a44e41a96f35ce485</id>
<content type='text'>
Signed-off-by: z00189512 &lt;abc.zhangliang@huawei.com&gt;
Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
</content>
</entry>
<entry>
<title>mtd: switch ubi_open_volume_path() to vfs_stat()</title>
<updated>2016-03-28T03:49:17Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2016-03-24T18:47:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=322ea0bbf3003df17b6253f76e572c37d79a6810'/>
<id>urn:sha1:322ea0bbf3003df17b6253f76e572c37d79a6810</id>
<content type='text'>
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>VFS: assorted d_backing_inode() annotations</title>
<updated>2015-04-15T19:06:59Z</updated>
<author>
<name>David Howells</name>
</author>
<published>2015-03-17T22:26:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bb668734c4c960c8f61f017585b323b97e5f47b5'/>
<id>urn:sha1:bb668734c4c960c8f61f017585b323b97e5f47b5</id>
<content type='text'>
Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>UBI: Add initial support for scatter gather</title>
<updated>2015-01-28T15:04:26Z</updated>
<author>
<name>Richard Weinberger</name>
</author>
<published>2015-01-10T21:52:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9ff08979e17423f0f691c1d76f35dfec72a5e459'/>
<id>urn:sha1:9ff08979e17423f0f691c1d76f35dfec72a5e459</id>
<content type='text'>
Adds a new set of functions to deal with scatter gather.
ubi_eba_read_leb_sg() will read from a LEB into a scatter gather list.
The new data structure struct ubi_sgl will be used within UBI to
hold the scatter gather list itself and metadata to have a cursor
within the list.

Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Tested-by: Ezequiel Garcia &lt;ezequiel@vanguardiasur.com.ar&gt;
Reviewed-by: Ezequiel Garcia &lt;ezequiel@vanguardiasur.com.ar&gt;
</content>
</entry>
</feed>
