diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2010-06-08 13:24:56 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-08-09 16:47:41 -0400 |
commit | 41cce647f8dbe26941bed2158fad0839aab7a294 (patch) | |
tree | 36465b993cae7523a61bc21f988da2c02d8db785 /fs/jffs2 | |
parent | 1e2317350971c8b01e6adddc798a00e9bcc1a440 (diff) |
jffs2: don't open-code iget_failed()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/jffs2')
-rw-r--r-- | fs/jffs2/dir.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/fs/jffs2/dir.c b/fs/jffs2/dir.c index 166062a68230..5fd3b5cecda5 100644 --- a/fs/jffs2/dir.c +++ b/fs/jffs2/dir.c | |||
@@ -232,9 +232,7 @@ static int jffs2_create(struct inode *dir_i, struct dentry *dentry, int mode, | |||
232 | return 0; | 232 | return 0; |
233 | 233 | ||
234 | fail: | 234 | fail: |
235 | make_bad_inode(inode); | 235 | iget_failed(inode); |
236 | unlock_new_inode(inode); | ||
237 | iput(inode); | ||
238 | jffs2_free_raw_inode(ri); | 236 | jffs2_free_raw_inode(ri); |
239 | return ret; | 237 | return ret; |
240 | } | 238 | } |
@@ -454,9 +452,7 @@ static int jffs2_symlink (struct inode *dir_i, struct dentry *dentry, const char | |||
454 | return 0; | 452 | return 0; |
455 | 453 | ||
456 | fail: | 454 | fail: |
457 | make_bad_inode(inode); | 455 | iget_failed(inode); |
458 | unlock_new_inode(inode); | ||
459 | iput(inode); | ||
460 | return ret; | 456 | return ret; |
461 | } | 457 | } |
462 | 458 | ||
@@ -601,9 +597,7 @@ static int jffs2_mkdir (struct inode *dir_i, struct dentry *dentry, int mode) | |||
601 | return 0; | 597 | return 0; |
602 | 598 | ||
603 | fail: | 599 | fail: |
604 | make_bad_inode(inode); | 600 | iget_failed(inode); |
605 | unlock_new_inode(inode); | ||
606 | iput(inode); | ||
607 | return ret; | 601 | return ret; |
608 | } | 602 | } |
609 | 603 | ||
@@ -778,9 +772,7 @@ static int jffs2_mknod (struct inode *dir_i, struct dentry *dentry, int mode, de | |||
778 | return 0; | 772 | return 0; |
779 | 773 | ||
780 | fail: | 774 | fail: |
781 | make_bad_inode(inode); | 775 | iget_failed(inode); |
782 | unlock_new_inode(inode); | ||
783 | iput(inode); | ||
784 | return ret; | 776 | return ret; |
785 | } | 777 | } |
786 | 778 | ||