From 5f152917047a1f9691ede4c22da2eeb483cd453f Mon Sep 17 00:00:00 2001 From: "John L. Hammond" Date: Thu, 28 Mar 2013 17:05:00 -0500 Subject: [PATCH] LU-3059 lod: shrink lod_object to 128 bytes By packing ldo_stripes_allocated into the bitfield containing ldo_striping_cached and ldo_def_striping_set we reduce the size of struct lod_object from 136 to 128 bytes on x86_64. Signed-off-by: John L. Hammond Change-Id: If419560f9187a98fcb034cd9fcd5c854ff467cec Reviewed-on: http://review.whamcloud.com/5878 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Alex Zhuravlev Reviewed-by: Mike Pershin Reviewed-by: Oleg Drokin --- lustre/lod/lod_internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/lod/lod_internal.h b/lustre/lod/lod_internal.h index dcf7d6e..a2cb272 100644 --- a/lustre/lod/lod_internal.h +++ b/lustre/lod/lod_internal.h @@ -154,10 +154,10 @@ struct lod_object { char *ldo_pool; struct dt_object **ldo_stripe; /* to know how much memory to free, ldo_stripenr can be less */ - int ldo_stripes_allocated; /* default striping for directory represented by this object * is cached in stripenr/stripe_size */ - unsigned int ldo_striping_cached:1, + unsigned int ldo_stripes_allocated:16, + ldo_striping_cached:1, ldo_def_striping_set:1; __u32 ldo_def_stripe_size; __u16 ldo_def_stripenr; -- 1.8.3.1