IFp4 @219811:

VFS is now fully MPSAFE, fix compilation.
This commit is contained in:
pjd 2012-12-01 08:51:40 +00:00
parent a0ad8432c7
commit ad5e7d941b

View File

@ -468,7 +468,7 @@ audit_canon_path(struct thread *td, int dirfd, char *path, char *cpath)
char *rbuf, *fbuf, *copy;
struct filedesc *fdp;
struct sbuf sbf;
int error, needslash, vfslocked;
int error, needslash;
WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL, "%s: at %s:%d",
__func__, __FILE__, __LINE__);
@ -504,9 +504,7 @@ audit_canon_path(struct thread *td, int dirfd, char *path, char *cpath)
return;
}
vhold(cvnp);
vfslocked = VFS_LOCK_GIANT(cvnp->v_mount);
vrele(cvnp);
VFS_UNLOCK_GIANT(vfslocked);
}
needslash = (fdp->fd_rdir != cvnp);
} else {