diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-08-07 16:32:25 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-08-19 10:01:33 -0700 |
commit | b067ba1f1b3fa7ec798d35e12aed6cdba9cea905 (patch) | |
tree | 1095778a55a4577811f6f98d0e1a21822bbf47ab /fs/f2fs/f2fs.h | |
parent | e1c42045203071c4634b89e696037357810d3083 (diff) | |
download | linux-b067ba1f1b3fa7ec798d35e12aed6cdba9cea905.tar.gz linux-b067ba1f1b3fa7ec798d35e12aed6cdba9cea905.tar.bz2 linux-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/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 790a0738d314..c8288c9a4e1e 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -1439,7 +1439,7 @@ extern const struct inode_operations f2fs_special_inode_operations; */ bool f2fs_may_inline(struct inode *); int f2fs_read_inline_data(struct inode *, struct page *); -int f2fs_convert_inline_data(struct inode *, pgoff_t); +int f2fs_convert_inline_data(struct inode *, pgoff_t, struct page *); int f2fs_write_inline_data(struct inode *, struct page *, unsigned int); void truncate_inline_data(struct inode *, u64); int recover_inline_data(struct inode *, struct page *); |