]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
fix isofs d_op handling
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 18 Dec 2010 15:29:26 +0000 (10:29 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 13 Jan 2011 01:02:43 +0000 (20:02 -0500)
switch to ->s_d_op; d_obtain_alias() will DTRT now

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/isofs/inode.c
fs/isofs/namei.c

index 844a7903c72f7dd9b0013171e1ff9492324f0c15..a0f3833c0dbf578ae0f6477007ae443eae9b728b 100644 (file)
@@ -939,17 +939,18 @@ root_found:
                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);
 
index 679a849c3b27e0fe275bc45ca0278b7f05c5ac56..4fb3e8074fd46619d3fa3ec554a148039b49ce4a 100644 (file)
@@ -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);