summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_subr.c
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2008-11-03 20:00:35 +0000
committerattilio <attilio@FreeBSD.org>2008-11-03 20:00:35 +0000
commit26a604f3bccb7c4a377c7cbf4facbae8c20e1fed (patch)
tree51374f893e6d2ba20ae55ec543453eb22efd981b /sys/kern/vfs_subr.c
parent6cfec3e1612f60d19983a6ab0defbecbfd07a12d (diff)
downloadFreeBSD-src-26a604f3bccb7c4a377c7cbf4facbae8c20e1fed.zip
FreeBSD-src-26a604f3bccb7c4a377c7cbf4facbae8c20e1fed.tar.gz
Remove the mnt_holdcnt and mnt_holdcntwaiters because they are useless.
Really, the concept of holdcnt in the struct mount is rappresented by the mnt_ref (which prevents the type-stable structure from being "recycled) handled through vfs_ref() and vfs_rel(). On this optic, switch the holdcnt acquisition into an emulated vfs_ref() (and subsequent release into vfs_rel()). Discussed with: kib Tested by: pho
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r--sys/kern/vfs_subr.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 30ee61a..327a9c5 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -2838,8 +2838,6 @@ DB_SHOW_COMMAND(mount, db_show_mount)
db_printf(" mnt_maxsymlinklen = %d\n", mp->mnt_maxsymlinklen);
db_printf(" mnt_iosize_max = %d\n", mp->mnt_iosize_max);
db_printf(" mnt_hashseed = %u\n", mp->mnt_hashseed);
- db_printf(" mnt_holdcnt = %d\n", mp->mnt_holdcnt);
- db_printf(" mnt_holdcntwaiters = %d\n", mp->mnt_holdcntwaiters);
db_printf(" mnt_secondary_writes = %d\n", mp->mnt_secondary_writes);
db_printf(" mnt_secondary_accwrites = %d\n",
mp->mnt_secondary_accwrites);
OpenPOWER on IntegriCloud