OSDN Git Service

erofs: use read_mapping_page instead of sb_bread
authorGao Xiang <gaoxiang25@huawei.com>
Wed, 4 Sep 2019 02:09:10 +0000 (10:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Sep 2019 18:10:09 +0000 (20:10 +0200)
commitfe7c2423570dca4ffb9adc53225344ffd4a9f49a
tree411970f8276d246ecf177e4eabf642b22e51fa3a
parent4f761fa253b49f657de7ef6f695a124e08e56c3a
erofs: use read_mapping_page instead of sb_bread

As Christoph said [1], "This seems to be your only direct
use of buffer heads, which while not deprecated are a bit
of an ugly step child.  So if you can easily avoid creating
a buffer_head dependency in a new filesystem I think you
should avoid it. "

[1] https://lore.kernel.org/r/20190902125109.GA9826@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-24-gaoxiang25@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/erofs/super.c