summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2014-05-06 16:47:23 +0800
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2014-05-07 10:21:59 +0900
commitdfb2bf38bf89e15a65f9996566b2945921388a2f (patch)
treeefe5c9496469fd694a19c57422a4a42bac8ba1e0 /fs/f2fs
parent62aed044ea4bef36ac3f6885611b013b11c9be2d (diff)
downloadlinux-dfb2bf38bf89e15a65f9996566b2945921388a2f.tar.gz
linux-dfb2bf38bf89e15a65f9996566b2945921388a2f.tar.bz2
linux-dfb2bf38bf89e15a65f9996566b2945921388a2f.zip
f2fs: add a tracepoint for f2fs_write_end
This patch adds a tracepoint for f2fs_write_end to trace write op of user. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/data.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index cde0d69969b9..ea58fb698ac6 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -989,6 +989,8 @@ static int f2fs_write_end(struct file *file,
{
struct inode *inode = page->mapping->host;
+ trace_f2fs_write_end(inode, pos, len, copied);
+
SetPageUptodate(page);
set_page_dirty(page);