aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2011-12-18 15:00:08 -0500
committerBen Myers <bpm@sgi.com>2012-01-17 16:03:50 -0500
commit49e4c70e52a2bc2090e5a4e003e2888af21d6a2b (patch)
tree9d9ecf18b5a78d187f622a769cc1464150ad7740 /fs/xfs
parent8096b1ebb59b94b3bc6abb6b7d121419e83447ba (diff)
xfs: make i_flags an unsigned long
To be used for bit wakeup i_flags needs to be an unsigned long or we'll run into trouble on big endian systems. Because of the 1-byte i_update field right after it this actually causes a fairly large size increase on its own (4 or 8 bytes), but that increase will be more than offset by the next two patches. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Alex Elder <aelder@sgi.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/xfs_inode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h
index 47497e11c111..be8dc0c2cf52 100644
--- a/fs/xfs/xfs_inode.h
+++ b/fs/xfs/xfs_inode.h
@@ -242,7 +242,7 @@ typedef struct xfs_inode {
242 wait_queue_head_t i_ipin_wait; /* inode pinning wait queue */ 242 wait_queue_head_t i_ipin_wait; /* inode pinning wait queue */
243 spinlock_t i_flags_lock; /* inode i_flags lock */ 243 spinlock_t i_flags_lock; /* inode i_flags lock */
244 /* Miscellaneous state. */ 244 /* Miscellaneous state. */
245 unsigned short i_flags; /* see defined flags below */ 245 unsigned long i_flags; /* see defined flags below */
246 unsigned char i_update_core; /* timestamps/size is dirty */ 246 unsigned char i_update_core; /* timestamps/size is dirty */
247 unsigned int i_delayed_blks; /* count of delay alloc blks */ 247 unsigned int i_delayed_blks; /* count of delay alloc blks */
248 248