xfs
[Top] [All Lists]

[PATCH] xfs: put xfs_trans_t on diet

To: Nathan Scott <nathans@xxxxxxx>
Subject: [PATCH] xfs: put xfs_trans_t on diet
From: Alexey Dobriyan <adobriyan@xxxxxxxxx>
Date: Thu, 22 Jun 2006 11:40:51 +0400
Cc: xfs@xxxxxxxxxxx, Andrew Morton <akpm@xxxxxxxx>
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:mime-version:content-type:content-disposition:user-agent; b=mNbMBzgHGQ34UY1KRJ/BxELOYlD0VFdhfOWPduLfQZdduLo5Lfq9zhWmaOwhPRlwNCHPG3MXjqWw/YOixBpnRm8MkdY9M6q9boiQCiWEo/JAsk4r6CwACsxaqTJMwWXhvLZHZJtQwuKhRfP59gjrbLNUh2DKfck8tv4c9oEiRYI=
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.11
* remove ->t_forw, ->t_back -- unused
* ->t_ag_freeblks_delta, ->t_ag_flist_delta, ->t_ag_btree_delta
  are debugging aid -- wrap them in everyone's favourite way.

As a result, cut "xfs_trans" slab object size from 592 to 572 bytes here.

Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx>
---

 fs/xfs/xfs_trans.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/fs/xfs/xfs_trans.h
+++ b/fs/xfs/xfs_trans.h
@@ -338,8 +338,6 @@ typedef void (*xfs_trans_callback_t)(str
 typedef struct xfs_trans {
        unsigned int            t_magic;        /* magic number */
        xfs_log_callback_t      t_logcb;        /* log callback struct */
-       struct xfs_trans        *t_forw;        /* async list pointers */
-       struct xfs_trans        *t_back;        /* async list pointers */
        unsigned int            t_type;         /* transaction type */
        unsigned int            t_log_res;      /* amt of log space resvd */
        unsigned int            t_log_count;    /* count for perm log res */
@@ -364,9 +362,11 @@ typedef struct xfs_trans {
        long                    t_res_fdblocks_delta; /* on-disk only chg */
        long                    t_frextents_delta;/* superblock freextents chg*/
        long                    t_res_frextents_delta; /* on-disk only chg */
+#ifdef DEBUG
        long                    t_ag_freeblks_delta; /* debugging counter */
        long                    t_ag_flist_delta; /* debugging counter */
        long                    t_ag_btree_delta; /* debugging counter */
+#endif
        long                    t_dblocks_delta;/* superblock dblocks change */
        long                    t_agcount_delta;/* superblock agcount change */
        long                    t_imaxpct_delta;/* superblock imaxpct change */


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