Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Aug 2020 06:35:18 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r363756 - head/sys/kern
Message-ID:  <202008010635.0716ZIv8041870@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008010635.0716ZIv8041870>