diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index d27a92a54447..04e980c58319 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -3461,6 +3461,9 @@ static int f2fs_write_begin(struct file *file, struct address_space *mapping, *fsdata = NULL; + if (len == PAGE_SIZE) + goto repeat; + ret = f2fs_prepare_compress_overwrite(inode, pagep, index, fsdata); if (ret < 0) {