Skip to content

Commit 9b3c833

Browse files
zlatistivJaegeuk Kim
authored andcommitted
f2fs: Rename f2fs_unlink exit label
Rename "fail" label to "out" as it's used as a default exit path out of f2fs_unlink as well as error path. Signed-off-by: Nikola Z. Ivanov <zlatistiv@gmail.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
1 parent d8bdf78 commit 9b3c833

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

fs/f2fs/namei.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -552,21 +552,21 @@ static int f2fs_unlink(struct inode *dir, struct dentry *dentry)
552552

553553
if (unlikely(f2fs_cp_error(sbi))) {
554554
err = -EIO;
555-
goto fail;
555+
goto out;
556556
}
557557

558558
err = f2fs_dquot_initialize(dir);
559559
if (err)
560-
goto fail;
560+
goto out;
561561
err = f2fs_dquot_initialize(inode);
562562
if (err)
563-
goto fail;
563+
goto out;
564564

565565
de = f2fs_find_entry(dir, &dentry->d_name, &folio);
566566
if (!de) {
567567
if (IS_ERR(folio))
568568
err = PTR_ERR(folio);
569-
goto fail;
569+
goto out;
570570
}
571571

572572
if (unlikely(inode->i_nlink == 0)) {
@@ -575,7 +575,7 @@ static int f2fs_unlink(struct inode *dir, struct dentry *dentry)
575575
err = -EFSCORRUPTED;
576576
set_sbi_flag(F2FS_I_SB(inode), SBI_NEED_FSCK);
577577
f2fs_folio_put(folio, false);
578-
goto fail;
578+
goto out;
579579
}
580580

581581
f2fs_balance_fs(sbi, true);
@@ -585,7 +585,7 @@ static int f2fs_unlink(struct inode *dir, struct dentry *dentry)
585585
if (err) {
586586
f2fs_unlock_op(sbi);
587587
f2fs_folio_put(folio, false);
588-
goto fail;
588+
goto out;
589589
}
590590
f2fs_delete_entry(de, folio, dir, inode);
591591
f2fs_unlock_op(sbi);
@@ -601,7 +601,7 @@ static int f2fs_unlink(struct inode *dir, struct dentry *dentry)
601601

602602
if (IS_DIRSYNC(dir))
603603
f2fs_sync_fs(sbi->sb, 1);
604-
fail:
604+
out:
605605
trace_f2fs_unlink_exit(inode, err);
606606
return err;
607607
}

0 commit comments

Comments
 (0)