|
@@ -53,7 +53,7 @@ static struct inode *f2fs_new_inode(struct inode *dir, umode_t mode)
|
|
|
if (err) {
|
|
|
err = -EINVAL;
|
|
|
nid_free = true;
|
|
|
- goto out;
|
|
|
+ goto fail;
|
|
|
}
|
|
|
|
|
|
/* If the directory encrypted, then we should encrypt the inode. */
|
|
@@ -75,9 +75,6 @@ static struct inode *f2fs_new_inode(struct inode *dir, umode_t mode)
|
|
|
mark_inode_dirty(inode);
|
|
|
return inode;
|
|
|
|
|
|
-out:
|
|
|
- clear_nlink(inode);
|
|
|
- unlock_new_inode(inode);
|
|
|
fail:
|
|
|
trace_f2fs_new_inode(inode, err);
|
|
|
make_bad_inode(inode);
|