/[base]
ViewVC logotype

Revision 216796


Jump to revision: Previous Next
Author: kib
Date: Wed Dec 29 12:25:28 2010 UTC (11 years, 4 months ago)
Changed paths: 4
Log Message:
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


Changed paths

Path Details
Directoryhead/sys/ufs/ffs/ffs_alloc.c modified , text changed
Directoryhead/sys/ufs/ffs/ffs_vfsops.c modified , text changed
Directoryhead/sys/ufs/ffs/fs.h modified , text changed
Directoryhead/sys/ufs/ufs/ufsmount.h modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27