f2fs: make trace enter and end in pairs for unlink
PATCH 1/1 f2fs: make trace enter and end in pairs for unlink
In the f2fs_unlink we do not add trace end for some error paths, just add.
Signed-off-by Lihong Kou <[email protected]>
--- fs/f2fs/namei.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
fs/f2fs/namei.c +6 -4
@@ -569,15 +569,17 @@ static int f2fs_unlink(struct inode *dir, struct dentry *dentry)trace_f2fs_unlink_enter (dir, dentry); -if (unlikely (f2fs_cp_error (sbi))) -return -EIO ; +if (unlikely (f2fs_cp_error (sbi))) { + err = -EIO ; + goto fail; + } err =dquot_initialize (dir);if (err) -return err; + goto fail; err =dquot_initialize (inode);if (err) -return err; + goto fail; de =f2fs_find_entry (dir, &dentry->d_name, &page);if (!de) {
Signature · 8 lines
2.17.1 _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Quoted 4 lines · Lihong Kou
In the
f2fs_unlinkwe do not add trace end for some error paths, just add.Signed-off-by Lihong Kou <[email protected]>
Reviewed-by Chao Yu <[email protected]>
Thanks,
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel