Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.

Commit

Permalink
f2fs: make trace enter and end in pairs for unlink
Browse files Browse the repository at this point in the history
In the f2fs_unlink we do not add trace end for some
error paths, just add.

Signed-off-by: Lihong Kou <[email protected]>
Reviewed-by: Chao Yu <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
  • Loading branch information
Lihong Kou authored and radcolor committed Jul 12, 2020
1 parent 3297864 commit 8cd1f29
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions fs/f2fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,15 +506,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) {
Expand Down

0 comments on commit 8cd1f29

Please sign in to comment.