diff options
author | Christoph Hellwig <hch@infradead.org> | 2008-07-18 03:13:20 -0400 |
---|---|---|
committer | Niv Sardi <xaiki@debian.org> | 2008-07-28 02:59:36 -0400 |
commit | 25fe55e814a2964c7e16d16a5d08cae6e9313a3a (patch) | |
tree | 9337a4270cafe83a0bfd14e1c297aa5f24e02c33 /fs/xfs/linux-2.6/xfs_vnode.h | |
parent | c032bfcf468013643e05c8274824af10dd7cbb61 (diff) |
[XFS] xfs_setattr currently doesn't just handle the attributes set through
->setattr but also addition XFS-specific attributes: project id, inode
flags and extent size hint. Having these in a single function makes it
more complicated and forces to have us a bhv_vattr intermediate structure
eating up stackspace.
This patch adds a new xfs_ioctl_setattr helper for the XFS ioctls that set
these attributes and remove the code to set them through xfs_setattr.
SGI-PV: 984564
SGI-Modid: xfs-linux-melb:xfs-kern:31677a
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/linux-2.6/xfs_vnode.h')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_vnode.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/fs/xfs/linux-2.6/xfs_vnode.h b/fs/xfs/linux-2.6/xfs_vnode.h index 25eb2a9e8d9b..7797c9cdb591 100644 --- a/fs/xfs/linux-2.6/xfs_vnode.h +++ b/fs/xfs/linux-2.6/xfs_vnode.h | |||
@@ -117,26 +117,11 @@ typedef struct bhv_vattr { | |||
117 | #define XFS_AT_ACL 0x00080000 | 117 | #define XFS_AT_ACL 0x00080000 |
118 | #define XFS_AT_CAP 0x00100000 | 118 | #define XFS_AT_CAP 0x00100000 |
119 | #define XFS_AT_INF 0x00200000 | 119 | #define XFS_AT_INF 0x00200000 |
120 | #define XFS_AT_XFLAGS 0x00400000 | ||
121 | #define XFS_AT_EXTSIZE 0x00800000 | ||
122 | #define XFS_AT_NEXTENTS 0x01000000 | 120 | #define XFS_AT_NEXTENTS 0x01000000 |
123 | #define XFS_AT_ANEXTENTS 0x02000000 | 121 | #define XFS_AT_ANEXTENTS 0x02000000 |
124 | #define XFS_AT_PROJID 0x04000000 | ||
125 | #define XFS_AT_SIZE_NOPERM 0x08000000 | 122 | #define XFS_AT_SIZE_NOPERM 0x08000000 |
126 | #define XFS_AT_GENCOUNT 0x10000000 | 123 | #define XFS_AT_GENCOUNT 0x10000000 |
127 | 124 | ||
128 | #define XFS_AT_ALL (XFS_AT_TYPE|XFS_AT_MODE|XFS_AT_UID|XFS_AT_GID|\ | ||
129 | XFS_AT_FSID|XFS_AT_NODEID|XFS_AT_NLINK|XFS_AT_SIZE|\ | ||
130 | XFS_AT_ATIME|XFS_AT_MTIME|XFS_AT_CTIME|XFS_AT_RDEV|\ | ||
131 | XFS_AT_BLKSIZE|XFS_AT_NBLOCKS|XFS_AT_VCODE|XFS_AT_MAC|\ | ||
132 | XFS_AT_ACL|XFS_AT_CAP|XFS_AT_INF|XFS_AT_XFLAGS|XFS_AT_EXTSIZE|\ | ||
133 | XFS_AT_NEXTENTS|XFS_AT_ANEXTENTS|XFS_AT_PROJID|XFS_AT_GENCOUNT) | ||
134 | |||
135 | #define XFS_AT_STAT (XFS_AT_TYPE|XFS_AT_MODE|XFS_AT_UID|XFS_AT_GID|\ | ||
136 | XFS_AT_FSID|XFS_AT_NODEID|XFS_AT_NLINK|XFS_AT_SIZE|\ | ||
137 | XFS_AT_ATIME|XFS_AT_MTIME|XFS_AT_CTIME|XFS_AT_RDEV|\ | ||
138 | XFS_AT_BLKSIZE|XFS_AT_NBLOCKS|XFS_AT_PROJID) | ||
139 | |||
140 | #define XFS_AT_TIMES (XFS_AT_ATIME|XFS_AT_MTIME|XFS_AT_CTIME) | 125 | #define XFS_AT_TIMES (XFS_AT_ATIME|XFS_AT_MTIME|XFS_AT_CTIME) |
141 | 126 | ||
142 | #define XFS_AT_UPDTIMES (XFS_AT_UPDATIME|XFS_AT_UPDMTIME|XFS_AT_UPDCTIME) | 127 | #define XFS_AT_UPDTIMES (XFS_AT_UPDATIME|XFS_AT_UPDMTIME|XFS_AT_UPDCTIME) |