diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-04-25 06:24:33 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-04-29 03:52:01 +0200 |
commit | d70b4f53b950676228297f0b204f2e1512c1ff6c (patch) | |
tree | 1996ac697866902378e357a52bd54eb7fd1fe0b4 /fs | |
parent | f2fs: check nid == 0 in add_free_nid (diff) | |
download | linux-d70b4f53b950676228297f0b204f2e1512c1ff6c.tar.xz linux-d70b4f53b950676228297f0b204f2e1512c1ff6c.zip |
f2fs: add a tracepoint on f2fs_new_inode
This can help when debugging the free nid allocation flows.
Reviewed-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/f2fs/namei.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index c57fd18b769d..4aa26e53c935 100644 --- a/fs/f2fs/namei.c +++ b/fs/f2fs/namei.c @@ -63,7 +63,7 @@ static struct inode *f2fs_new_inode(struct inode *dir, umode_t mode) nid_free = true; goto out; } - + trace_f2fs_new_inode(inode, 0); mark_inode_dirty(inode); return inode; @@ -71,6 +71,7 @@ out: clear_nlink(inode); unlock_new_inode(inode); fail: + trace_f2fs_new_inode(inode, err); iput(inode); if (nid_free) alloc_nid_failed(sbi, ino); |