f2fs: trace checkpoint reason in fsync()
authorChao Yu <yuchao0@huawei.com>
Mon, 6 Nov 2017 14:51:45 +0000 (22:51 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 19 Dec 2017 03:38:31 +0000 (19:38 -0800)
commit0b0a1e72b5d51e6b2fca404e709af999f616ce83
tree1123eb8dc703bae65a173f1cacabe2752411e274
parentaf75a621ef3488754d9e86cbc13198def6ee8bd3
f2fs: trace checkpoint reason in fsync()

This patch slightly changes need_do_checkpoint to return the detail
info that indicates why we need do checkpoint, then caller could print
it with trace message.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/file.c
include/trace/events/f2fs.h