diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index d1f071814f08..41fd75dfefe7 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -3929,7 +3929,7 @@ static int f2fs_ioc_set_compress_option(struct file *filp, unsigned long arg) goto out; } - if (inode->i_size != 0) { + if (F2FS_HAS_BLOCKS(inode)) { ret = -EFBIG; goto out; }