Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292325
b: refs/heads/master
c: be0d93f
h: refs/heads/master
i:
  292323: 2524915
v: v3
  • Loading branch information
Al Viro committed Mar 21, 2012
1 parent 87a9c77 commit 47785db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f56b0fbc6477e50303a503ee1453ed94e20f154a
refs/heads/master: be0d93f0aa5682a24a2a9ec0dd26fffaad608cce
10 changes: 4 additions & 6 deletions trunk/fs/ocfs2/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -1154,12 +1154,12 @@ static int ocfs2_fill_super(struct super_block *sb, void *data, int silent)
}

status = ocfs2_mount_volume(sb);
if (osb->root_inode)
inode = igrab(osb->root_inode);

if (status < 0)
goto read_super_error;

if (osb->root_inode)
inode = igrab(osb->root_inode);

if (!inode) {
status = -EIO;
mlog_errno(status);
Expand All @@ -1168,6 +1168,7 @@ static int ocfs2_fill_super(struct super_block *sb, void *data, int silent)

root = d_alloc_root(inode);
if (!root) {
iput(inode);
status = -ENOMEM;
mlog_errno(status);
goto read_super_error;
Expand Down Expand Up @@ -1220,9 +1221,6 @@ static int ocfs2_fill_super(struct super_block *sb, void *data, int silent)
read_super_error:
brelse(bh);

if (inode)
iput(inode);

if (osb) {
atomic_set(&osb->vol_state, VOLUME_DISABLED);
wake_up(&osb->osb_mount_event);
Expand Down

0 comments on commit 47785db

Please sign in to comment.