]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - fs/xfs/xfs_xattr.c
xattr_handler: pass dentry and inode as separate arguments of ->get()
[mirror_ubuntu-artful-kernel.git] / fs / xfs / xfs_xattr.c
index 110f1d7d86b0b4ab5a0fa72d8f752d5b29ea9e5f..d111f691f313fdc980a9d9e9f6519d9bd30e06a0 100644 (file)
 
 
 static int
-xfs_xattr_get(const struct xattr_handler *handler, struct dentry *dentry,
-               const char *name, void *value, size_t size)
+xfs_xattr_get(const struct xattr_handler *handler, struct dentry *unused,
+               struct inode *inode, const char *name, void *value, size_t size)
 {
        int xflags = handler->flags;
-       struct xfs_inode *ip = XFS_I(d_inode(dentry));
+       struct xfs_inode *ip = XFS_I(inode);
        int error, asize = size;
 
        /* Convert Linux syscall to XFS internal ATTR flags */