diff options
author | Chao Yu <chao2.yu@samsung.com> | 2014-05-06 04:46:04 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2014-05-06 21:21:59 -0400 |
commit | 62aed044ea4bef36ac3f6885611b013b11c9be2d (patch) | |
tree | 650bb88860691bfae122e4be3f56c8c9789d465e /fs/f2fs/data.c | |
parent | 8b376249e7e659c41896e0d3e9b25d1230a4e7f6 (diff) |
f2fs: add a tracepoint for f2fs_write_begin
This patch adds a tracepoint for f2fs_write_begin 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/data.c')
-rw-r--r-- | fs/f2fs/data.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index a7bb98f5831a..cde0d69969b9 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c | |||
@@ -900,6 +900,8 @@ static int f2fs_write_begin(struct file *file, struct address_space *mapping, | |||
900 | struct dnode_of_data dn; | 900 | struct dnode_of_data dn; |
901 | int err = 0; | 901 | int err = 0; |
902 | 902 | ||
903 | trace_f2fs_write_begin(inode, pos, len, flags); | ||
904 | |||
903 | f2fs_balance_fs(sbi); | 905 | f2fs_balance_fs(sbi); |
904 | repeat: | 906 | repeat: |
905 | err = f2fs_convert_inline_data(inode, pos + len); | 907 | err = f2fs_convert_inline_data(inode, pos + len); |