Silence harmless "smbfs_closel: Negative opencount" messages at

unmount time.

Thanks to iedowse for the background information.

Submitted by:	bp
This commit is contained in:
Sheldon Hearn 2001-12-20 11:23:49 +00:00
parent 1bbfa941ef
commit 5bd80fc519
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=88263

View file

@ -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;
}