[PATCH v2 17/20] f2fs: support subpage blocks in online resize

From: Daeho Jeong

Date: Sun Nov 15 2026 - 23:10:31 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 d6304b705e06..64c91827a5f4 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -4325,9 +4325,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.611.g1030f0b940-goog