VFS: normal filesystems (and lustre): d_inode() annotations
[firefly-linux-kernel-4.4.55.git] / fs / hostfs / hostfs_kern.c
index e021188ca110aa9561be325c22724c75034d21f9..b827aa4248d418cee70d5d3dd67cd31feda52310 100644 (file)
@@ -795,7 +795,7 @@ static int hostfs_permission(struct inode *ino, int desired)
 
 static int hostfs_setattr(struct dentry *dentry, struct iattr *attr)
 {
-       struct inode *inode = dentry->d_inode;
+       struct inode *inode = d_inode(dentry);
        struct hostfs_iattr attrs;
        char *name;
        int err;