Skip to content

Commit

Permalink
fix isofs d_op handling
Browse files Browse the repository at this point in the history
switch to ->s_d_op; d_obtain_alias() will DTRT now

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Jan 13, 2011
1 parent c8aebb0 commit 6cc9c1d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 7 additions & 6 deletions fs/isofs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -939,17 +939,18 @@ static int isofs_fill_super(struct super_block *s, void *data, int silent)
goto out_iput;
}

/* get the root dentry */
s->s_root = d_alloc_root(inode);
if (!(s->s_root))
goto out_no_root;

table = 0;
if (joliet_level)
table += 2;
if (opt.check == 'r')
table++;
d_set_d_op(s->s_root, &isofs_dentry_ops[table]);

s->s_d_op = &isofs_dentry_ops[table];

/* get the root dentry */
s->s_root = d_alloc_root(inode);
if (!(s->s_root))
goto out_no_root;

kfree(opt.iocharset);

Expand Down
2 changes: 0 additions & 2 deletions fs/isofs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,6 @@ struct dentry *isofs_lookup(struct inode *dir, struct dentry *dentry, struct nam
struct inode *inode;
struct page *page;

d_set_d_op(dentry, dir->i_sb->s_root->d_op);

page = alloc_page(GFP_USER);
if (!page)
return ERR_PTR(-ENOMEM);
Expand Down

0 comments on commit 6cc9c1d

Please sign in to comment.