]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/fat/inode.c
fat: make sure to set d_ops in fat_get_parent
[linux-2.6-omap-h63xx.git] / fs / fat / inode.c
index bdd8fb7be2ca48e5ac4e49b5b2dd147375f6c8b2..37a8af159a1387b2755a20cf1a54b4557a142e99 100644 (file)
@@ -749,6 +749,8 @@ static struct dentry *fat_get_parent(struct dentry *child)
        brelse(bh);
 
        parent = d_obtain_alias(inode);
+       if (!IS_ERR(parent))
+               parent->d_op = sb->s_root->d_op;
 out:
        unlock_super(sb);