buffer: use bdev_getblk() to avoid memory reclaim in readahead path
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 14 Sep 2023 15:00:07 +0000 (16:00 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 4 Oct 2023 17:32:28 +0000 (10:32 -0700)
commit775d9b10530a0a303dc08a9cdb2ed1f8667d9c5f
tree157362cfc271d97a451dafe0fbee9d3dc1467fb3
parente509ad4d77e6c8852f082104e388110d16fdfb97
buffer: use bdev_getblk() to avoid memory reclaim in readahead path

__getblk() adds __GFP_NOFAIL, which is unnecessary for readahead; we're
quite comfortable with the possibility that we may not get a bh back.
Switch to bdev_getblk() which does not include __GFP_NOFAIL.

Link: https://lkml.kernel.org/r/20230914150011.843330-5-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Hui Zhu <teawater@antgroup.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/buffer.c