Whamcloud - gitweb
LU-10604 osd: define couple fields as bitfield 97/31097/5
authorAlex Zhuravlev <alexey.zhuravlev@intel.com>
Wed, 31 Jan 2018 06:08:02 +0000 (09:08 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 3 Mar 2018 04:30:08 +0000 (04:30 +0000)
redefine oo_compat_dot_created and oo_compat_dotdot_created
to save 8 bytes per object.

Change-Id: I92dafc693f1d118debc251d7d064b206e36624f0
Signed-off-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-on: https://review.whamcloud.com/31097
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osd-ldiskfs/osd_internal.h

index 4514a36..3d25d78 100644 (file)
@@ -135,23 +135,20 @@ struct osd_object {
        /** protects inode attributes. */
        spinlock_t              oo_guard;
 
+       /**
+        * Following two members *compat_dot* are used to indicate
+        * the presence of dot and dotdot in the given directory.
+        * This is required for interop mode (b11826).
+        */
        __u32                   oo_destroyed:1,
-                               oo_pfid_in_lma:1;
+                               oo_pfid_in_lma:1,
+                               oo_compat_dot_created:1,
+                               oo_compat_dotdot_created:1;
 
        /* the i_flags in LMA */
-       __u32                   oo_lma_flags;
-        /**
-         * Following two members are used to indicate the presence of dot and
-         * dotdot in the given directory. This is required for interop mode
-         * (b11826).
-         */
-        int                     oo_compat_dot_created;
-        int                     oo_compat_dotdot_created;
+       __u32                   oo_lma_flags;
 
         const struct lu_env    *oo_owner;
-#ifdef CONFIG_LOCKDEP
-        struct lockdep_map      oo_dep_map;
-#endif
 
        struct list_head        oo_xattr_list;
        struct lu_object_header *oo_header;