diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-01-25 05:57:05 -0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-02-22 16:07:23 -0800 |
commit | 2049d4fcb057c263929bec480f2db079d25fd601 (patch) | |
tree | e9dbf53cb32e866f49cea252fe84dde9837ada4a /fs/f2fs/data.c | |
parent | 3c082b7b5b28be606ed9ef11e4741df7c722c92e (diff) | |
download | linux-2049d4fcb057c263929bec480f2db079d25fd601.tar.bz2 |
f2fs: avoid multiple node page writes due to inline_data
The sceanrio is:
1. create fully node blocks
2. flush node blocks
3. write inline_data for all the node blocks again
4. flush node blocks redundantly
So, this patch tries to flush inline_data when flushing node blocks.
Reviewed-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r-- | fs/f2fs/data.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 1b08480c5e38..a11a8c789cd5 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -1463,6 +1463,7 @@ restart: if (pos + len <= MAX_INLINE_DATA) { read_inline_data(page, ipage); set_inode_flag(F2FS_I(inode), FI_DATA_EXIST); + set_inline_node(ipage); sync_inode_page(&dn); } else { err = f2fs_convert_inline_page(&dn, page); |