aboutsummaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorGravatar Matthew Wilcox (Oracle) <willy@infradead.org> 2023-09-14 16:00:06 +0100
committerGravatar Andrew Morton <akpm@linux-foundation.org> 2023-10-04 10:32:28 -0700
commite509ad4d77e6c8852f082104e388110d16fdfb97 (patch)
treea175c05a45e4e48f0a24a16227e323fda282fd27 /mm
parentbuffer: hoist GFP flags from grow_dev_page() to __getblk_gfp() (diff)
downloadlinux-e509ad4d77e6.tar.gz
linux-e509ad4d77e6.tar.bz2
linux-e509ad4d77e6.zip
ext4: use bdev_getblk() to avoid memory reclaim in readahead path
sb_getblk_gfp 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-4-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reported-by: Hui Zhu <teawater@antgroup.com> Closes: https://lore.kernel.org/linux-fsdevel/20230811035705.3296-1-teawaterz@linux.alibaba.com/ Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions