summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorHou Pengyang <houpengyang@huawei.com>2017-02-27 13:02:58 +0000
committerJaegeuk Kim <jaegeuk@kernel.org>2017-02-27 10:51:20 -0800
commitb8d96a30b6f1c29e1ab716b3727a63fe7268f661 (patch)
tree8cf31db8ee83b6fecf163cfe5b31714c10f2866a /fs/f2fs
parent7bb3a371d199156cb6a863feab377146b80942c5 (diff)
downloadlinux-b8d96a30b6f1c29e1ab716b3727a63fe7268f661.tar.gz
linux-b8d96a30b6f1c29e1ab716b3727a63fe7268f661.tar.bz2
linux-b8d96a30b6f1c29e1ab716b3727a63fe7268f661.zip
f2fs: add f2fs_drop_inode tracepoint
Signed-off-by: Hou Pengyang <houpengyang@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/super.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index fe714d549a6a..2d494d5239c5 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -624,6 +624,7 @@ static struct inode *f2fs_alloc_inode(struct super_block *sb)
static int f2fs_drop_inode(struct inode *inode)
{
+ int ret;
/*
* This is to avoid a deadlock condition like below.
* writeback_single_inode(inode)
@@ -656,10 +657,12 @@ static int f2fs_drop_inode(struct inode *inode)
spin_lock(&inode->i_lock);
atomic_dec(&inode->i_count);
}
+ trace_f2fs_drop_inode(inode, 0);
return 0;
}
-
- return generic_drop_inode(inode);
+ ret = generic_drop_inode(inode);
+ trace_f2fs_drop_inode(inode, ret);
+ return ret;
}
int f2fs_inode_dirtied(struct inode *inode, bool sync)