Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Dec 2013 06:10:49 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r259295 - stable/10/sys/sys
Message-ID:  <201312130610.rBD6An01082580@svn.freebsd.org>

Next in thread | Raw E-Mail | Index | Archive | Help
Author: kib
Date: Fri Dec 13 06:10:49 2013
New Revision: 259295
URL: http://svnweb.freebsd.org/changeset/base/259295

Log:
  MFC r257904:
  Hide MNT_SHARED_WRITES() and MNT_EXTENDED_SHARED() under the #ifdef
  _KERNEL braces.  Struct mount is only defined for the kernel build.

Modified:
  stable/10/sys/sys/mount.h
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/sys/mount.h
==============================================================================
--- stable/10/sys/sys/mount.h	Fri Dec 13 06:09:19 2013	(r259294)
+++ stable/10/sys/sys/mount.h	Fri Dec 13 06:10:49 2013	(r259295)
@@ -362,6 +362,7 @@ void          __mnt_vnode_markerfree_act
 #define MNTK_LOOKUP_SHARED	0x40000000 /* FS supports shared lock lookups */
 #define	MNTK_NOKNOTE	0x80000000	/* Don't send KNOTEs from VOP hooks */
 
+#ifdef _KERNEL
 static inline int
 MNT_SHARED_WRITES(struct mount *mp)
 {
@@ -375,6 +376,7 @@ MNT_EXTENDED_SHARED(struct mount *mp)
 
 	return (mp != NULL && (mp->mnt_kern_flag & MNTK_EXTENDED_SHARED) != 0);
 }
+#endif
 
 /*
  * Sysctl CTL_VFS definitions.



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?201312130610.rBD6An01082580>