Date: Sat, 5 Sep 1998 07:13:13 -0700 (PDT) From: Poul-Henning Kamp <phk@FreeBSD.ORG> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/sys/kern vfs_bio.c vnode_if.src src/sys/miscfs/specfs spec_vnops.c src/sys/sys buf.h conf.h src/sys/ufs/ffs ffs_alloc.c Message-ID: <199809051413.HAA12130@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
phk 1998/09/05 07:13:13 PDT
Modified files:
sys/kern vfs_bio.c vnode_if.src
sys/miscfs/specfs spec_vnops.c
sys/sys buf.h conf.h
sys/ufs/ffs ffs_alloc.c
Log:
Add a new vnode op, VOP_FREEBLKS(), which filesystems can use to inform
device drivers about sectors no longer in use.
Device-drivers receive the call through d_strategy, if they have
D_CANFREE in d_flags.
This allows flash based devices to erase the sectors and avoid
pointlessly carrying them around in compactions.
Reviewed by: Kirk Mckusick, bde
Sponsored by: M-Systems (www.m-sys.com)
Revision Changes Path
1.175 +10 -9 src/sys/kern/vfs_bio.c
1.19 +15 -1 src/sys/kern/vnode_if.src
1.73 +26 -1 src/sys/miscfs/specfs/spec_vnops.c
1.55 +8 -2 src/sys/sys/buf.h
1.45 +2 -1 src/sys/sys/conf.h
1.52 +2 -1 src/sys/ufs/ffs/ffs_alloc.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809051413.HAA12130>
