Re: [PATCH 8/9] filemap: Remove redundant FGP_NOFS
From: Jan Kara
Date: Mon Aug 31 2026 - 06:51:18 EST
On Sun 30-08-26 05:18:55, Matthew Wilcox (Oracle) wrote:
> The flags already include FGP_NOWAIT which prohibits all reclaim, not
> just reclaiming from the filesystem.
>
> Signed-off-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx>
Looks good. Feel free to add:
Reviewed-by: Jan Kara <jack@xxxxxxx>
Honza
> ---
> 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
>
--
Jan Kara <jack@xxxxxxxx>
SUSE Labs, CR