Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292330
b: refs/heads/master
c: 68acb8e
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Mar 21, 2012
1 parent dd67a4c commit 7839a12
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 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: 1688f86046e5572623b2eacb685eb707fe21fb0a
refs/heads/master: 68acb8e60d672cba0fd1d3545ba33343931c7a24
17 changes: 9 additions & 8 deletions trunk/fs/hfsplus/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,13 @@ static int hfsplus_fill_super(struct super_block *sb, void *data, int silent)
goto out_put_alloc_file;
}

sb->s_d_op = &hfsplus_dentry_operations;
sb->s_root = d_make_root(root);
if (!sb->s_root) {
err = -ENOMEM;
goto out_put_alloc_file;
}

str.len = sizeof(HFSP_HIDDENDIR_NAME) - 1;
str.name = HFSP_HIDDENDIR_NAME;
err = hfs_find_init(sbi->cat_tree, &fd);
Expand Down Expand Up @@ -515,21 +522,15 @@ static int hfsplus_fill_super(struct super_block *sb, void *data, int silent)
}
}

sb->s_d_op = &hfsplus_dentry_operations;
sb->s_root = d_alloc_root(root);
if (!sb->s_root) {
err = -ENOMEM;
goto out_put_hidden_dir;
}

unload_nls(sbi->nls);
sbi->nls = nls;
return 0;

out_put_hidden_dir:
iput(sbi->hidden_dir);
out_put_root:
iput(root);
dput(sb->s_root);
sb->s_root = NULL;
out_put_alloc_file:
iput(sbi->alloc_file);
out_close_cat_tree:
Expand Down

0 comments on commit 7839a12

Please sign in to comment.