diff options
author | sheldonh <sheldonh@FreeBSD.org> | 2001-12-20 11:23:49 +0000 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 2001-12-20 11:23:49 +0000 |
commit | 1ead0f8c886c17d809b57f4c6f5863256d9ee65d (patch) | |
tree | 56b4903c5fd487fd66c1a831d2f0a2ef5182a5a3 /sys/fs/smbfs | |
parent | 57e9e6cf4ed92d08065f562ca557daee6ff03df9 (diff) | |
download | FreeBSD-src-1ead0f8c886c17d809b57f4c6f5863256d9ee65d.zip FreeBSD-src-1ead0f8c886c17d809b57f4c6f5863256d9ee65d.tar.gz |
Silence harmless "smbfs_closel: Negative opencount" messages at
unmount time.
Thanks to iedowse for the background information.
Submitted by: bp
Diffstat (limited to 'sys/fs/smbfs')
-rw-r--r-- | sys/fs/smbfs/smbfs_vnops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/smbfs/smbfs_vnops.c b/sys/fs/smbfs/smbfs_vnops.c index e69b213..ed738fc 100644 --- a/sys/fs/smbfs/smbfs_vnops.c +++ b/sys/fs/smbfs/smbfs_vnops.c @@ -249,7 +249,7 @@ smbfs_closel(struct vop_close_args *ap) smb_makescred(&scred, td, ap->a_cred); - if (np->n_opencount == 0) { + if (np->n_opencount == 0 && vp->v_type != VDIR) { SMBERROR("Negative opencount\n"); return 0; } |