f2fs: avoid multiple node page writes due to inline_data
authorJaegeuk Kim <jaegeuk@kernel.org>
Mon, 25 Jan 2016 13:57:05 +0000 (05:57 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 23 Feb 2016 00:07:23 +0000 (16:07 -0800)
commit2049d4fcb057c263929bec480f2db079d25fd601
treee9dbf53cb32e866f49cea252fe84dde9837ada4a
parent3c082b7b5b28be606ed9ef11e4741df7c722c92e
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>
fs/f2fs/data.c
fs/f2fs/inline.c
fs/f2fs/inode.c
fs/f2fs/node.c
fs/f2fs/node.h