diff options
author | Christoph Hellwig <hch@infradead.org> | 2008-06-26 23:32:31 -0400 |
---|---|---|
committer | Niv Sardi <xaiki@debian.org> | 2008-07-28 02:59:09 -0400 |
commit | e182f57ac019b034b40d16f3c6d8e86826aecd56 (patch) | |
tree | b270d1ccd9c019b8172661aa87d5eb03f1a54219 /fs/xfs/xfs_fs.h | |
parent | 90ad58a83accbeb8de09de4a55d3e6b429767eae (diff) |
[XFS] attrmulti cleanup
xfs_attrmulti_by_handle currently request the size based on
sizeof(attr_multiop_t) but should be using sizeof(xfs_attr_multiop_t)
because that is what it is dealing with. Despite beeing wrong this
actually harmless in practice because both structures are the same size on
all platforms.
But this sizeof was the only user of struct attr_multiop so we can just
kill it. Also move the ATTR_OP_* defines xfs_attr.h into the struct
xfs_attr_multiop defintion in xfs_fs.h because they are only used with
that structure, and are part of the user ABI for the
XFS_IOC_ATTRMULTI_BY_HANDLE ioctl.
SGI-PV: 983508
SGI-Modid: xfs-linux-melb:xfs-kern:31352a
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Tim Shimmin <tes@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_fs.h')
-rw-r--r-- | fs/xfs/xfs_fs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/xfs_fs.h b/fs/xfs/xfs_fs.h index 6ca749897c58..01c0cc88d3f3 100644 --- a/fs/xfs/xfs_fs.h +++ b/fs/xfs/xfs_fs.h | |||
@@ -372,6 +372,9 @@ typedef struct xfs_fsop_attrlist_handlereq { | |||
372 | 372 | ||
373 | typedef struct xfs_attr_multiop { | 373 | typedef struct xfs_attr_multiop { |
374 | __u32 am_opcode; | 374 | __u32 am_opcode; |
375 | #define ATTR_OP_GET 1 /* return the indicated attr's value */ | ||
376 | #define ATTR_OP_SET 2 /* set/create the indicated attr/value pair */ | ||
377 | #define ATTR_OP_REMOVE 3 /* remove the indicated attr */ | ||
375 | __s32 am_error; | 378 | __s32 am_error; |
376 | void __user *am_attrname; | 379 | void __user *am_attrname; |
377 | void __user *am_attrvalue; | 380 | void __user *am_attrvalue; |