]> git.baikalelectronics.ru Git - kernel.git/commit
erofs: use read_cache_page_gfp for erofs_get_meta_page
authorGao Xiang <gaoxiang25@huawei.com>
Wed, 4 Sep 2019 02:09:12 +0000 (10:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Sep 2019 18:10:09 +0000 (20:10 +0200)
commitea7fe090885c091e0c25fe298eb80f431cc71a7b
treec611af0ee8cc9259b061bcc53483fa426fec116e
parente515245211e8d8aac51028888ffa83b1bc18bdf9
erofs: use read_cache_page_gfp for erofs_get_meta_page

As Christoph said [1], "I'd much prefer to just use
read_cache_page_gfp, and live with the fact that this
allocates bufferheads behind you for now.  I'll try to
speed up my attempts to get rid of the buffer heads on
the block device mapping instead. "

This simplifies the code a lot and a minor thing is
"no REQ_META (e.g. for blktrace) on metadata at all..."

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