]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Create struct snapdata which contains the snapshot fields from cdev
authorphk <phk@FreeBSD.org>
Mon, 13 Sep 2004 07:29:45 +0000 (07:29 +0000)
committerphk <phk@FreeBSD.org>
Mon, 13 Sep 2004 07:29:45 +0000 (07:29 +0000)
commita915c8947e50802aebb4e527e17cd6d52d024c1f
tree748612c942f9124c4ec86f41904e6788aadfde89
parent2806321da1d08c5e85a322f18c76ddcc5cf4c809
Create struct snapdata which contains the snapshot fields from cdev
and the previously malloc'ed snapshot lock.

Malloc struct snapdata instead of just the lock.

Replace snapshot fields in cdev with pointer to snapdata (saves 16 bytes).

While here, give the private readblock() function a vnode argument
in preparation for moving UFS to access GEOM directly.
sys/kern/kern_conf.c
sys/sys/conf.h
sys/ufs/ffs/ffs_snapshot.c