fs: dcache reduce branches in lookup path
[firefly-linux-kernel-4.4.55.git] / fs / ncpfs / inode.c
index 60047dbeb38d8254f347f103cb49fa6d547074d9..0c75a5f3cafd5d43e95c389473f8e559f5f6c189 100644 (file)
@@ -717,7 +717,7 @@ static int ncp_fill_super(struct super_block *sb, void *raw_data, int silent)
        sb->s_root = d_alloc_root(root_inode);
         if (!sb->s_root)
                goto out_no_root;
-       sb->s_root->d_op = &ncp_root_dentry_operations;
+       d_set_d_op(sb->s_root, &ncp_root_dentry_operations);
        return 0;
 
 out_no_root: