Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190889
b: refs/heads/master
c: 2656244
h: refs/heads/master
i:
  190887: ff8c01c
v: v3
  • Loading branch information
Al Viro committed May 15, 2010
1 parent 9fb5837 commit 4e93d37
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 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: d83c49f3e36cecd2e8823b6c48ffba083b8a5704
refs/heads/master: 265624495f5acf6077f8f8d264f8170573d8d752
14 changes: 7 additions & 7 deletions trunk/fs/logfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,27 +333,27 @@ static int logfs_get_sb_final(struct super_block *sb, struct vfsmount *mnt)
goto fail;

sb->s_root = d_alloc_root(rootdir);
if (!sb->s_root)
goto fail2;
if (!sb->s_root) {
iput(rootdir);
goto fail;
}

super->s_erase_page = alloc_pages(GFP_KERNEL, 0);
if (!super->s_erase_page)
goto fail2;
goto fail;
memset(page_address(super->s_erase_page), 0xFF, PAGE_SIZE);

/* FIXME: check for read-only mounts */
err = logfs_make_writeable(sb);
if (err)
goto fail3;
goto fail1;

log_super("LogFS: Finished mounting\n");
simple_set_mnt(mnt, sb);
return 0;

fail3:
fail1:
__free_page(super->s_erase_page);
fail2:
iput(rootdir);
fail:
iput(logfs_super(sb)->s_master_inode);
return -EIO;
Expand Down

0 comments on commit 4e93d37

Please sign in to comment.