freebsd-src/sys/ufs
Kirk McKusick 98d275df37 When creating a snapshot, create a list of initially allocated blocks.
Whenever doing a copy-on-write check, first look in the list of
initially allocated blocks to see if it is there. If so, no further
check is needed. If not, fall through and do the full check. This
change eliminates one of two known deadlocks caused by snapshots.
Handling the second deadlock will be the subject of another check-in.
This change also reduces the cost of the copy-on-write check by
speeding up the verification of frequently checked blocks.

Sponsored by:	DARPA & NAI Labs.
2002-10-09 07:28:35 +00:00
..
ffs When creating a snapshot, create a list of initially allocated blocks. 2002-10-09 06:13:48 +00:00
ufs When creating a snapshot, create a list of initially allocated blocks. 2002-10-09 07:28:35 +00:00