git: 9def8ea689ed - main - vfs: list enums on separate lines

From: Mateusz Guzik <mjg_at_FreeBSD.org>
Date: Wed, 05 Jul 2023 15:38:49 UTC
The branch main has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=9def8ea689edd4b5a133d6fca13fcb39798d1c47

commit 9def8ea689edd4b5a133d6fca13fcb39798d1c47
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2023-04-21 18:06:13 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2023-07-05 14:46:30 +0000

    vfs: list enums on separate lines
    
    Requested by:   kib
---
 sys/sys/vnode.h | 33 ++++++++++++++++++++++++++-------
 1 file changed, 26 insertions(+), 7 deletions(-)

diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index 428bf31b3996..8b108c73b355 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -56,15 +56,34 @@
 /*
  * Vnode types.  VNON means no type.
  */
-enum vtype	{ VNON, VREG, VDIR, VBLK, VCHR, VLNK, VSOCK, VFIFO, VBAD,
-		  VMARKER };
-#define VLASTTYPE VMARKER
+enum vtype {
+	VNON,
+	VREG,
+	VDIR,
+	VBLK,
+	VCHR,
+	VLNK,
+	VSOCK,
+	VFIFO,
+	VBAD,
+	VMARKER,
+	VLASTTYPE = VMARKER,
+};
+
+enum vstate {
+	VSTATE_UNINITIALIZED,
+	VSTATE_CONSTRUCTED,
+	VSTATE_DESTROYING,
+	VSTATE_DEAD,
+	VLASTSTATE = VSTATE_DEAD,
+};
 
-enum vstate	{ VSTATE_UNINITIALIZED, VSTATE_CONSTRUCTED, VSTATE_DESTROYING,
-		  VSTATE_DEAD };
-#define VLASTSTATE VSTATE_DEAD
+enum vgetstate {
+	VGET_NONE,
+	VGET_HOLDCNT,
+	VGET_USECOUNT,
+};
 
-enum vgetstate	{ VGET_NONE, VGET_HOLDCNT, VGET_USECOUNT };
 /*
  * Each underlying filesystem allocates its own private area and hangs
  * it from v_data.  If non-null, this area is freed in getnewvnode().