Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jul 2002 07:58:26 -0700 (PDT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 14465 for review
Message-ID:  <200207191458.g6JEwQmM074403@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=14465

Change 14465 by rwatson@rwatson_paprika on 2002/07/19 07:58:11

	Move the vnode label refresh of parent directory to the
	MULTILABEL-specific block of the mac_stdcreate_ea file
	system helper function.  This should improve performance
	on non-MULTILABEL file systems that support extended
	attribute backing of MAC labels.

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#170 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#170 (text+ko) ====

@@ -1062,13 +1062,13 @@
 	struct mac extmac;
 	int error;
 
-	error = vn_refreshlabel(dvp, cred);
-	if (error)
-		return (error);
-
 	if ((dvp->v_mount->mnt_flag & MNT_MULTILABEL) == 0) {
 		mac_update_vnode_from_mount(tvp, tvp->v_mount);
 	} else {
+		error = vn_refreshlabel(dvp, cred);
+		if (error)
+			return (error);
+
 		/*
 		 * Stick the label in the vnode.  Then try to write to
 		 * disk.  If we fail, return a failure to abort the

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




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