aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/mount.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2013-01-03 19:02:52 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2013-01-03 19:02:52 +0000
commitd1c5e3f8b0bc0b3a8abab2d3c37cd59fb77fc5cd (patch)
treec29cb5e6467af333d537a0633edc9a8c9dde7acb /sys/sys/mount.h
parent6b54784391a6938734974a92538efd5b4834581f (diff)
downloadsrc-d1c5e3f8b0bc0b3a8abab2d3c37cd59fb77fc5cd.tar.gz
src-d1c5e3f8b0bc0b3a8abab2d3c37cd59fb77fc5cd.zip
Remove the deprecated MNT_VNODE_FOREACH interface. Use the
MNT_VNODE_FOREACH_ALL instead.
Notes
Notes: svn path=/head/; revision=245001
Diffstat (limited to 'sys/sys/mount.h')
-rw-r--r--sys/sys/mount.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/sys/sys/mount.h b/sys/sys/mount.h
index ed2b0026ba44..992227c27db6 100644
--- a/sys/sys/mount.h
+++ b/sys/sys/mount.h
@@ -225,29 +225,6 @@ void __mnt_vnode_markerfree_active(struct vnode **mvp, struct mount *);
#define MNT_VNODE_FOREACH_ACTIVE_ABORT(mp, mvp) \
__mnt_vnode_markerfree_active(&(mvp), (mp))
-/*
- * Definitions for MNT_VNODE_FOREACH.
- *
- * This interface has been deprecated in favor of MNT_VNODE_FOREACH_ALL.
- */
-struct vnode *__mnt_vnode_next(struct vnode **mvp, struct mount *mp);
-struct vnode *__mnt_vnode_first(struct vnode **mvp, struct mount *mp);
-void __mnt_vnode_markerfree(struct vnode **mvp, struct mount *mp);
-
-#define MNT_VNODE_FOREACH(vp, mp, mvp) \
- for (vp = __mnt_vnode_first(&(mvp), (mp)); \
- (vp) != NULL; vp = __mnt_vnode_next(&(mvp), (mp)))
-
-#define MNT_VNODE_FOREACH_ABORT_ILOCKED(mp, mvp) \
- __mnt_vnode_markerfree(&(mvp), (mp))
-
-#define MNT_VNODE_FOREACH_ABORT(mp, mvp) \
- do { \
- MNT_ILOCK(mp); \
- MNT_VNODE_FOREACH_ABORT_ILOCKED(mp, mvp); \
- MNT_IUNLOCK(mp); \
- } while (0)
-
#define MNT_ILOCK(mp) mtx_lock(&(mp)->mnt_mtx)
#define MNT_ITRYLOCK(mp) mtx_trylock(&(mp)->mnt_mtx)
#define MNT_IUNLOCK(mp) mtx_unlock(&(mp)->mnt_mtx)