cvs commit: src/sys/kern vfs_bio.c src/sys/sys buf.h
src/sys/ufs/ffs ffs_extern.h ffs_softdep.c ffs_vfsops.c
Poul-Henning Kamp
phk at FreeBSD.org
Tue Feb 8 20:29:11 GMT 2005
phk 2005-02-08 20:29:10 UTC
FreeBSD src repository
Modified files:
sys/kern vfs_bio.c
sys/sys buf.h
sys/ufs/ffs ffs_extern.h ffs_softdep.c ffs_vfsops.c
Log:
Background writes are entirely an FFS/Softupdates thing.
Give FFS vnodes a specific bufwrite method which contains all the
background write stuff and then calls into the default bufwrite()
for the rest of the job.
Remove all the background write related stuff from the normal bufwrite.
This drags the softdep_move_dependencies() back into FFS.
Long term, it is worth looking at simply copying the data into
allocated memory and issuing the bio directly and not create the
"shadow buf" in the first place (just like copy-on-write is done
in snapshots for instance). I don't think we really gain anything
but complexity from doing this with a buf.
Revision Changes Path
1.477 +5 -126 src/sys/kern/vfs_bio.c
1.184 +0 -8 src/sys/sys/buf.h
1.66 +1 -0 src/sys/ufs/ffs/ffs_extern.h
1.172 +1 -3 src/sys/ufs/ffs/ffs_softdep.c
1.276 +172 -1 src/sys/ufs/ffs/ffs_vfsops.c
More information about the cvs-src
mailing list