Author: mjg
Date: Sat Aug  1 06:35:18 2020
New Revision: 363756
URL: https://svnweb.freebsd.org/changeset/base/363756

Log:
  cache: reshuffle struct cache_fpl and nameidata_saved
  
  Shaves 16 bytes.

Modified:
  head/sys/kern/vfs_cache.c

Modified: head/sys/kern/vfs_cache.c
==============================================================================
--- head/sys/kern/vfs_cache.c   Sat Aug  1 06:34:18 2020        (r363755)
+++ head/sys/kern/vfs_cache.c   Sat Aug  1 06:35:18 2020        (r363756)
@@ -2890,24 +2890,24 @@ cache_fpl_handle_root(struct nameidata *ndp, struct vn
  * need restoring in case fast path lookup fails.
  */
 struct nameidata_saved {
-       int cn_flags;
        long cn_namelen;
        char *cn_nameptr;
        size_t ni_pathlen;
+       int cn_flags;
 };
 
 struct cache_fpl {
-       int line;
-       enum cache_fpl_status status;
-       bool in_smr;
        struct nameidata *ndp;
-       struct nameidata_saved snd;
        struct componentname *cnp;
+       struct pwd *pwd;
        struct vnode *dvp;
-       seqc_t dvp_seqc;
        struct vnode *tvp;
+       seqc_t dvp_seqc;
        seqc_t tvp_seqc;
-       struct pwd *pwd;
+       struct nameidata_saved snd;
+       int line;
+       enum cache_fpl_status status:8;
+       bool in_smr;
 };
 
 static void
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to