The flags already include FGP_NOWAIT which prohibits all reclaim, not just reclaiming from the filesystem. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/pagemap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index 0adfa6605653..3974b063a049 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h @@ -929,7 +929,7 @@ static inline struct page *grab_cache_page_nowait(struct address_space *mapping, pgoff_t index) { return pagecache_get_page(mapping, index, - FGP_LOCK|FGP_CREAT|FGP_NOFS|FGP_NOWAIT, + FGP_LOCK | FGP_CREAT | FGP_NOWAIT, mapping_gfp_mask(mapping)); } -- 2.47.3