aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/xfs/linux-2.6/xfs_ioctl.c2
-rw-r--r--fs/xfs/xfs_attr.h16
-rw-r--r--fs/xfs/xfs_fs.h3
3 files changed, 4 insertions, 17 deletions
diff --git a/fs/xfs/linux-2.6/xfs_ioctl.c b/fs/xfs/linux-2.6/xfs_ioctl.c
index 993f5720200a..8eddaff36843 100644
--- a/fs/xfs/linux-2.6/xfs_ioctl.c
+++ b/fs/xfs/linux-2.6/xfs_ioctl.c
@@ -593,7 +593,7 @@ xfs_attrmulti_by_handle(
593 goto out; 593 goto out;
594 594
595 error = E2BIG; 595 error = E2BIG;
596 size = am_hreq.opcount * sizeof(attr_multiop_t); 596 size = am_hreq.opcount * sizeof(xfs_attr_multiop_t);
597 if (!size || size > 16 * PAGE_SIZE) 597 if (!size || size > 16 * PAGE_SIZE)
598 goto out_vn_rele; 598 goto out_vn_rele;
599 599
diff --git a/fs/xfs/xfs_attr.h b/fs/xfs/xfs_attr.h
index 3115dcc67236..8b2d31c19e4d 100644
--- a/fs/xfs/xfs_attr.h
+++ b/fs/xfs/xfs_attr.h
@@ -85,22 +85,6 @@ typedef struct attrlist_ent { /* data from attr_list() */
85 &((char *)buffer)[ ((attrlist_t *)(buffer))->al_offset[index] ]) 85 &((char *)buffer)[ ((attrlist_t *)(buffer))->al_offset[index] ])
86 86
87/* 87/*
88 * Multi-attribute operation vector.
89 */
90typedef struct attr_multiop {
91 int am_opcode; /* operation to perform (ATTR_OP_GET, etc.) */
92 int am_error; /* [out arg] result of this sub-op (an errno) */
93 char *am_attrname; /* attribute name to work with */
94 char *am_attrvalue; /* [in/out arg] attribute value (raw bytes) */
95 int am_length; /* [in/out arg] length of value */
96 int am_flags; /* bitwise OR of attr API flags defined above */
97} attr_multiop_t;
98
99#define ATTR_OP_GET 1 /* return the indicated attr's value */
100#define ATTR_OP_SET 2 /* set/create the indicated attr/value pair */
101#define ATTR_OP_REMOVE 3 /* remove the indicated attr */
102
103/*
104 * Kernel-internal version of the attrlist cursor. 88 * Kernel-internal version of the attrlist cursor.
105 */ 89 */
106typedef struct attrlist_cursor_kern { 90typedef struct attrlist_cursor_kern {
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
373typedef struct xfs_attr_multiop { 373typedef 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;