erofs: use read_cache_page_gfp for erofs_get_meta_page
commit618f40ea026bda2866b2b1bc8ae2c7343a3d7a22
authorGao Xiang <gaoxiang25@huawei.com>
Wed, 4 Sep 2019 02:09:12 +0000 (4 10:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Sep 2019 18:10:09 +0000 (5 20:10 +0200)
treec611af0ee8cc9259b061bcc53483fa426fec116e
parent4231138fe0c88b4120ef347ee01def82ce439c0b
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