svn commit: r363756 - head/sys/kern

Mateusz Guzik mjg at FreeBSD.org
Sat Aug 1 06:35:19 UTC 2020


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


More information about the svn-src-head mailing list