xfs
[Top] [All Lists]

[PATCH 1/4] xfs: make i_flags and unsigned long

To: xfs@xxxxxxxxxxx
Subject: [PATCH 1/4] xfs: make i_flags and unsigned long
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Tue, 18 Oct 2011 16:13:05 -0400
References: <20111018201304.279051318@xxxxxxxxxxxxxxxxxxxxxx>
User-agent: quilt/0.48-1
To be used for bit wakeup i_flags needs to be an unsigned long or we'll
run into trouble on big endian systems.  Beause of the 1-byte i_update
field right after it this actually causes a fairly large size increase
on it's own (4 or 7 bytes), but that increase will be more than offset
by the next two patches.

Signed-off-by: Christoph Hellwig <hch@xxxxxx>

Index: xfs/fs/xfs/xfs_inode.h
===================================================================
--- xfs.orig/fs/xfs/xfs_inode.h 2011-08-24 06:02:01.913971548 +0200
+++ xfs/fs/xfs/xfs_inode.h      2011-08-24 06:02:17.287221597 +0200
@@ -249,7 +249,7 @@ typedef struct xfs_inode {
        wait_queue_head_t       i_ipin_wait;    /* inode pinning wait queue */
        spinlock_t              i_flags_lock;   /* inode i_flags lock */
        /* Miscellaneous state. */
-       unsigned short          i_flags;        /* see defined flags below */
+       unsigned long           i_flags;        /* see defined flags below */
        unsigned char           i_update_core;  /* timestamps/size is dirty */
        unsigned int            i_delayed_blks; /* count of delay alloc blks */
 

<Prev in Thread] Current Thread [Next in Thread>