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
af9a546450
commit
6ece6a6a1b
@ -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…
x
Reference in New Issue
Block a user