summaryrefslogtreecommitdiffstats
path: root/sys/sys/mount.h
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2012-09-09 19:11:52 +0000
committerkib <kib@FreeBSD.org>2012-09-09 19:11:52 +0000
commit01b848f0eebd0e92a90c06e0708aa3d48942ed79 (patch)
tree7c0e814abcdde22ad04e0810b32053877bb598f2 /sys/sys/mount.h
parent7ea73aa912244bc9fcb5d57cf684c60efcde6401 (diff)
downloadFreeBSD-src-01b848f0eebd0e92a90c06e0708aa3d48942ed79.zip
FreeBSD-src-01b848f0eebd0e92a90c06e0708aa3d48942ed79.tar.gz
Add MNTK_LOOKUP_EXCL_DOTDOT struct mount flag, which specifies to the
lookup code that dotdot lookups shall override any shared lock requests with the exclusive one. The flag is useful for filesystems which sometimes need to upgrade shared lock to exclusive inside the VOP_LOOKUP or later, which cannot be done safely for dotdot, due to dvp also locked and causing LOR. In collaboration with: pho MFC after: 3 weeks
Diffstat (limited to 'sys/sys/mount.h')
-rw-r--r--sys/sys/mount.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/mount.h b/sys/sys/mount.h
index 4b83ba4..134b0c3 100644
--- a/sys/sys/mount.h
+++ b/sys/sys/mount.h
@@ -373,6 +373,7 @@ void __mnt_vnode_markerfree(struct vnode **mvp, struct mount *mp);
#define MNTK_NO_IOPF 0x00000100 /* Disallow page faults during reads
and writes. Filesystem shall properly
handle i/o state on EFAULT. */
+#define MNTK_LOOKUP_EXCL_DOTDOT 0x00000800
#define MNTK_NOASYNC 0x00800000 /* disable async */
#define MNTK_UNMOUNT 0x01000000 /* unmount in progress */
#define MNTK_MWAIT 0x02000000 /* waiting for unmount to finish */
OpenPOWER on IntegriCloud