fs: dcache reduce branches in lookup path
[firefly-linux-kernel-4.4.55.git] / fs / hfsplus / super.c
index 182e83a9079ef8f7f6ed0141a94d2f805afd124c..ddf712e4700e278ec43ad7c94be6fe51c9ef8a3b 100644 (file)
@@ -419,7 +419,7 @@ static int hfsplus_fill_super(struct super_block *sb, void *data, int silent)
                err = -ENOMEM;
                goto cleanup;
        }
-       sb->s_root->d_op = &hfsplus_dentry_operations;
+       d_set_d_op(sb->s_root, &hfsplus_dentry_operations);
 
        str.len = sizeof(HFSP_HIDDENDIR_NAME) - 1;
        str.name = HFSP_HIDDENDIR_NAME;