Don't set IN_CHANGE and IN_UPDATE on inodes for potentially suspended

file systems.  This could cause deadlocks when creating snapshots.

Reviewed by:	jeff
This commit is contained in:
tegge 2006-03-08 02:14:39 +00:00
parent 101c7b294b
commit 6c921985a7

View File

@ -422,7 +422,6 @@ ufs_lookup(ap)
enduseful = slotoffset + slotsize;
}
dp->i_endoff = roundup2(enduseful, DIRBLKSIZ);
dp->i_flag |= IN_CHANGE | IN_UPDATE;
/*
* We return with the directory locked, so that
* the parameters we set up above will still be