freebsd-dev/sys/ufs/ffs
Konstantin Belousov 8c2a54de80 Add kernel side support for BIO_DELETE/TRIM on UFS.
The FS_TRIM fs flag indicates that administrator requested issuing of
TRIM commands for the volume. UFS will only send the command to disk
if the disk reports GEOM::candelete attribute.

Since disk queue is reordered, data block is marked as free in the bitmap
only after TRIM command completed. Due to need to sleep waiting for
i/o to finish, TRIM bio_done routine schedules taskqueue to set the
bitmap bit.

Based on the patch by:	mckusick
Reviewed by:	mckusick, pjd
Tested by:	pho
MFC after:	1 month
2010-12-29 12:25:28 +00:00
..
ffs_alloc.c Add kernel side support for BIO_DELETE/TRIM on UFS. 2010-12-29 12:25:28 +00:00
ffs_balloc.c - Merge soft-updates journaling from projects/suj/head into head. This 2010-04-24 07:05:35 +00:00
ffs_extern.h - Merge soft-updates journaling from projects/suj/head into head. This 2010-04-24 07:05:35 +00:00
ffs_inode.c Add function lbn_offset to calculate offset of the indirect block of 2010-11-11 11:35:42 +00:00
ffs_rawread.c VI_OBJDIRTY vnode flag mirrors the state of OBJ_MIGHTBEDIRTY vm object 2009-12-21 12:29:38 +00:00
ffs_snapshot.c - Call softdep_prealloc() before any of the balloc routines in the 2010-05-07 08:45:21 +00:00
ffs_softdep.c Move the definition of mkdirlisthd from header to C file. 2010-12-29 12:16:06 +00:00
ffs_subr.c - Merge soft-updates journaling from projects/suj/head into head. This 2010-04-24 07:05:35 +00:00
ffs_tables.c
ffs_vfsops.c Add kernel side support for BIO_DELETE/TRIM on UFS. 2010-12-29 12:25:28 +00:00
ffs_vnops.c - Handle the truncation of an inode with an effective link count of 0 in 2010-07-06 07:11:04 +00:00
fs.h Add kernel side support for BIO_DELETE/TRIM on UFS. 2010-12-29 12:25:28 +00:00
softdep.h Move the definition of mkdirlisthd from header to C file. 2010-12-29 12:16:06 +00:00