xattr_handler: pass dentry and inode as separate arguments of ->get()
[linux-2.6-microblaze.git] / fs / reiserfs / xattr_trusted.c
index cc248a5..31837f0 100644 (file)
@@ -8,14 +8,13 @@
 #include <linux/uaccess.h>
 
 static int
-trusted_get(const struct xattr_handler *handler, struct dentry *dentry,
-           const char *name, void *buffer, size_t size)
+trusted_get(const struct xattr_handler *handler, struct dentry *unused,
+           struct inode *inode, const char *name, void *buffer, size_t size)
 {
-       if (!capable(CAP_SYS_ADMIN) || IS_PRIVATE(d_inode(dentry)))
+       if (!capable(CAP_SYS_ADMIN) || IS_PRIVATE(inode))
                return -EPERM;
 
-       return reiserfs_xattr_get(d_inode(dentry),
-                                 xattr_full_name(handler, name),
+       return reiserfs_xattr_get(inode, xattr_full_name(handler, name),
                                  buffer, size);
 }