aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/data.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2014-08-07 16:32:25 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2014-08-19 10:01:33 -0700
commitb067ba1f1b3fa7ec798d35e12aed6cdba9cea905 (patch)
tree1095778a55a4577811f6f98d0e1a21822bbf47ab /fs/f2fs/data.c
parentf2fs: fix typo (diff)
downloadlinux-dev-b067ba1f1b3fa7ec798d35e12aed6cdba9cea905.tar.xz
linux-dev-b067ba1f1b3fa7ec798d35e12aed6cdba9cea905.zip
f2fs: should convert inline_data during the mkwrite
If mkwrite is called to an inode having inline_data, it can overwrite the data index space as NEW_ADDR. (e.g., the first 4 bytes are coincidently zero) Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r--fs/f2fs/data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index 7aef28d1fffa..ac3ccc25386b 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -946,7 +946,7 @@ static int f2fs_write_begin(struct file *file, struct address_space *mapping,
f2fs_balance_fs(sbi);
repeat:
- err = f2fs_convert_inline_data(inode, pos + len);
+ err = f2fs_convert_inline_data(inode, pos + len, NULL);
if (err)
goto fail;