diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 59534040c929..d4b7503a6209 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -3340,6 +3340,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) {