[PATCH 17/20] f2fs: support subpage blocks in online resize
From: Daeho Jeong
Date: Mon Nov 02 2026 - 17:33:16 EST
From: Daeho Jeong <daehojeong@xxxxxxxxxx>
Resize works in blocks, segments and sections, independent of
PAGE_SIZE, so remove the -EOPNOTSUPP check.
Signed-off-by: Daeho Jeong <daehojeong@xxxxxxxxxx>
---
fs/f2fs/file.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index 91f792cf879f..67ed6be8952f 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -4250,9 +4250,6 @@ static int f2fs_ioc_resize_fs(struct file *filp, unsigned long arg)
struct f2fs_sb_info *sbi = F2FS_I_SB(file_inode(filp));
__u64 block_count;
- if (f2fs_has_subpage_blocks(sbi))
- return -EOPNOTSUPP;
-
if (!capable(CAP_SYS_ADMIN))
return -EPERM;
--
2.56.0.317.g454f8302e1-goog