mirror of
https://github.com/opnsense/src.git
synced 2026-03-28 13:43:12 -04:00
vfs: plug a conditional assigment of lo_name in getnewvnode
It only matters for witness. No functional changes.
This commit is contained in:
parent
a8614f0eec
commit
512fa9a4e0
1 changed files with 4 additions and 0 deletions
|
|
@ -1669,11 +1669,15 @@ getnewvnode(const char *tag, struct mount *mp, struct vop_vector *vops,
|
|||
* that we can compare pointers rather than doing a strcmp().
|
||||
*/
|
||||
lo = &vp->v_vnlock->lock_object;
|
||||
#ifdef WITNESS
|
||||
if (lo->lo_name != tag) {
|
||||
#endif
|
||||
lo->lo_name = tag;
|
||||
#ifdef WITNESS
|
||||
WITNESS_DESTROY(lo);
|
||||
WITNESS_INIT(lo, tag);
|
||||
}
|
||||
#endif
|
||||
/*
|
||||
* By default, don't allow shared locks unless filesystems opt-in.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue