When mkdir()-ing, the parent dir gets is linkcount increased.
Fix VN_KNOTE to reflect that. Found by: tobez@freebsd.org MFC after: 2 days
This commit is contained in:
parent
a320ca2f9a
commit
40e294f796
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=86782
@ -1604,7 +1604,7 @@ ufs_mkdir(ap)
|
||||
|
||||
bad:
|
||||
if (error == 0) {
|
||||
VN_KNOTE(dvp, NOTE_WRITE);
|
||||
VN_KNOTE(dvp, NOTE_WRITE | NOTE_LINK);
|
||||
*ap->a_vpp = tvp;
|
||||
} else {
|
||||
dp->i_effnlink--;
|
||||
|
Loading…
Reference in New Issue
Block a user