]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: skip unnecessary node writes during fsync
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Thu, 20 Mar 2014 12:52:53 +0000 (21:52 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Thu, 20 Mar 2014 13:10:11 +0000 (22:10 +0900)
commitb98157b3cfd0e0c4ca1e166062465ea25b2fa0b5
tree0ad83458da430f524f70a681c4d88c1b22e54233
parent3fbef868d9ae016fa7f48677d0e3d6155806d000
f2fs: skip unnecessary node writes during fsync

If multiple redundant fsync calls are triggered, we don't need to write its
node pages with fsync mark continuously.

So, this patch adds FI_NEED_FSYNC to track whether the latest node block is
written with the fsync mark or not.
If the mark was set, a new fsync doesn't need to write a node block.
Otherwise, we should do a new node block with the mark for roll-forward
recovery.

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/node.c
fs/f2fs/node.h