Commit 41cce647 authored by Al Viro's avatar Al Viro

jffs2: don't open-code iget_failed()

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 1e231735
...@@ -232,9 +232,7 @@ static int jffs2_create(struct inode *dir_i, struct dentry *dentry, int mode, ...@@ -232,9 +232,7 @@ static int jffs2_create(struct inode *dir_i, struct dentry *dentry, int mode,
return 0; return 0;
fail: fail:
make_bad_inode(inode); iget_failed(inode);
unlock_new_inode(inode);
iput(inode);
jffs2_free_raw_inode(ri); jffs2_free_raw_inode(ri);
return ret; return ret;
} }
...@@ -454,9 +452,7 @@ static int jffs2_symlink (struct inode *dir_i, struct dentry *dentry, const char ...@@ -454,9 +452,7 @@ static int jffs2_symlink (struct inode *dir_i, struct dentry *dentry, const char
return 0; return 0;
fail: fail:
make_bad_inode(inode); iget_failed(inode);
unlock_new_inode(inode);
iput(inode);
return ret; return ret;
} }
...@@ -601,9 +597,7 @@ static int jffs2_mkdir (struct inode *dir_i, struct dentry *dentry, int mode) ...@@ -601,9 +597,7 @@ static int jffs2_mkdir (struct inode *dir_i, struct dentry *dentry, int mode)
return 0; return 0;
fail: fail:
make_bad_inode(inode); iget_failed(inode);
unlock_new_inode(inode);
iput(inode);
return ret; return ret;
} }
...@@ -778,9 +772,7 @@ static int jffs2_mknod (struct inode *dir_i, struct dentry *dentry, int mode, de ...@@ -778,9 +772,7 @@ static int jffs2_mknod (struct inode *dir_i, struct dentry *dentry, int mode, de
return 0; return 0;
fail: fail:
make_bad_inode(inode); iget_failed(inode);
unlock_new_inode(inode);
iput(inode);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment