Re: [PATCH 3/9] erofs: Remove redundant FGP_NOFS
From: Jan Kara
Date: Mon Aug 31 2026 - 06:20:18 EST
On Sun 30-08-26 05:18:50, 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
> ---
> fs/erofs/internal.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/erofs/internal.h b/fs/erofs/internal.h
> index 65974e57aebf..84b3cdc8e88f 100644
> --- a/fs/erofs/internal.h
> +++ b/fs/erofs/internal.h
> @@ -327,7 +327,7 @@ static inline struct folio *erofs_grab_folio_nowait(struct address_space *as,
> pgoff_t index)
> {
> return __filemap_get_folio(as, index,
> - FGP_LOCK|FGP_CREAT|FGP_NOFS|FGP_NOWAIT,
> + FGP_LOCK | FGP_CREAT | FGP_NOWAIT,
> readahead_gfp_mask(as) & ~__GFP_RECLAIM);
> }
>
> --
> 2.47.3
>
--
Jan Kara <jack@xxxxxxxx>
SUSE Labs, CR