fs: dcache reduce branches in lookup path
[firefly-linux-kernel-4.4.55.git] / fs / hostfs / hostfs_kern.c
index 861113fcfc88ca3b366254a5adf1c7b1859a57fb..0bc81cf256b8320c325bf64eafd32e1aede575d6 100644 (file)
@@ -612,7 +612,7 @@ struct dentry *hostfs_lookup(struct inode *ino, struct dentry *dentry,
                goto out_put;
 
        d_add(dentry, inode);
-       dentry->d_op = &hostfs_dentry_ops;
+       d_set_d_op(dentry, &hostfs_dentry_ops);
        return NULL;
 
  out_put: