[PATCH 3/9] erofs: Remove redundant FGP_NOFS
From: Matthew Wilcox (Oracle)
Date: Sun Aug 30 2026 - 00:20:22 EST
The flags already include FGP_NOWAIT which prohibits all reclaim, not
just reclaiming from the filesystem.
Signed-off-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx>
---
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