]> git.baikalelectronics.ru Git - kernel.git/commit
erofs: localize erofs_grab_bio()
authorGao Xiang <gaoxiang25@huawei.com>
Wed, 4 Sep 2019 02:09:02 +0000 (10:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Sep 2019 18:10:08 +0000 (20:10 +0200)
commit4abb6640d3ea042298a3cd74bff484f631b5e6a7
tree8d12f4baf75cde72c03cd3fceb73f1f09dd9ed4c
parent3a0903b3078523be8a70e11c38b940ea1a5433a3
erofs: localize erofs_grab_bio()

As Christoph pointed out [1], "erofs_grab_bio tries to
handle a bio_alloc failure, except that the function will
not actually fail due the mempool backing it."

Sorry about useless code, fix it now and
localize erofs_grab_bio [2].

[1] https://lore.kernel.org/r/20190830162812.GA10694@infradead.org/
[2] https://lore.kernel.org/r/20190902122016.GL15931@infradead.org/
Reported-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Link: https://lore.kernel.org/r/20190904020912.63925-16-gaoxiang25@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/erofs/data.c
fs/erofs/internal.h
fs/erofs/zdata.c