summaryrefslogtreecommitdiffstats
path: root/fs/squashfs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-04-10 20:48:24 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2016-04-10 20:48:24 -0400
commitb296821a7c42fa58baa17513b2b7b30ae66f3336 (patch)
tree5cb6593218b793ff77df1c21ea74b756af9c8540 /fs/squashfs
parent79a628d14ec7ee9adfdc3ce04343d5ff7ec20c18 (diff)
xattr_handler: pass dentry and inode as separate arguments of ->get()
... and do not assume they are already attached to each other Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/squashfs')
-rw-r--r--fs/squashfs/xattr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/squashfs/xattr.c b/fs/squashfs/xattr.c
index 1e9de96288d8..1548b3784548 100644
--- a/fs/squashfs/xattr.c
+++ b/fs/squashfs/xattr.c
@@ -214,10 +214,12 @@ failed:
214 214
215 215
216static int squashfs_xattr_handler_get(const struct xattr_handler *handler, 216static int squashfs_xattr_handler_get(const struct xattr_handler *handler,
217 struct dentry *d, const char *name, 217 struct dentry *unused,
218 struct inode *inode,
219 const char *name,
218 void *buffer, size_t size) 220 void *buffer, size_t size)
219{ 221{
220 return squashfs_xattr_get(d_inode(d), handler->flags, name, 222 return squashfs_xattr_get(inode, handler->flags, name,
221 buffer, size); 223 buffer, size);
222} 224}
223 225