]> git.proxmox.com Git - mirror_zfs.git/blobdiff - module/zfs/zpl_inode.c
Linux 4.11 compat: iops.getattr and friends
[mirror_zfs.git] / module / zfs / zpl_inode.c
index 2e438eaff8c221ab9a050061e15ce2fea3568040..8351ab5a0c62b2fff32c830181f677137b9de442 100644 (file)
@@ -340,18 +340,25 @@ zpl_rmdir(struct inode *dir, struct dentry *dentry)
 }
 
 static int
-zpl_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
+zpl_getattr_impl(const struct path *path, struct kstat *stat, u32 request_mask,
+    unsigned int query_flags)
 {
        int error;
        fstrans_cookie_t cookie;
 
        cookie = spl_fstrans_mark();
-       error = -zfs_getattr_fast(dentry->d_inode, stat);
+
+       /*
+        * XXX request_mask and query_flags currently ignored.
+        */
+
+       error = -zfs_getattr_fast(path->dentry->d_inode, stat);
        spl_fstrans_unmark(cookie);
        ASSERT3S(error, <=, 0);
 
        return (error);
 }
+ZPL_GETATTR_WRAPPER(zpl_getattr);
 
 static int
 zpl_setattr(struct dentry *dentry, struct iattr *ia)