From: Andreas Dilger Date: Sun, 27 Apr 2014 17:06:51 +0000 (-0400) Subject: staging/lustre: shrink lu_object_header by 8 bytes on x86_64 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a700f975356b845869ba3c2baab0d8430d00921a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging/lustre: shrink lu_object_header by 8 bytes on x86_64 Locate the loh_flags and loh_ref fields together in lu_object_header to avoid holes and shrink the structure by 8 bytes. Signed-off-by: Andreas Dilger Reviewed-on: http://review.whamcloud.com/9185 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3059 Reviewed-by: Alex Zhuravlev Reviewed-by: Liang Zhen Signed-off-by: Oleg Drokin Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/include/lu_object.h b/drivers/staging/lustre/lustre/include/lu_object.h index 6773bca1e0d8..98149f5da153 100644 --- a/drivers/staging/lustre/lustre/include/lu_object.h +++ b/drivers/staging/lustre/lustre/include/lu_object.h @@ -515,6 +515,10 @@ enum lu_object_header_attr { * whether object is backed by persistent storage entity. */ struct lu_object_header { + /** + * Fid, uniquely identifying this object. + */ + struct lu_fid loh_fid; /** * Object flags from enum lu_object_header_flags. Set and checked * atomically. @@ -524,10 +528,6 @@ struct lu_object_header { * Object reference count. Protected by lu_site::ls_guard. */ atomic_t loh_ref; - /** - * Fid, uniquely identifying this object. - */ - struct lu_fid loh_fid; /** * Common object attributes, cached for efficiency. From enum * lu_object_header_attr.