Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a700f975 authored by Andreas Dilger's avatar Andreas Dilger Committed by Greg Kroah-Hartman
Browse files

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: default avatarAndreas Dilger <andreas.dilger@intel.com>
Reviewed-on: http://review.whamcloud.com/9185
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3059


Reviewed-by: default avatarAlex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: default avatarLiang Zhen <liang.zhen@intel.com>
Signed-off-by: default avatarOleg Drokin <oleg.drokin@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 09aed8a5
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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.