diff options
author | kib <kib@FreeBSD.org> | 2010-12-29 12:25:28 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2010-12-29 12:25:28 +0000 |
commit | 17dccd1898b6a0ddd49fcd77d7314ddc494cbac8 (patch) | |
tree | caf44cb53e3be97531f2a851ce0a0a25b34c7ac1 /sbin/dumpfs | |
parent | e8862739b90ac36ae90c4552837b4959cbd54410 (diff) | |
download | FreeBSD-src-17dccd1898b6a0ddd49fcd77d7314ddc494cbac8.zip FreeBSD-src-17dccd1898b6a0ddd49fcd77d7314ddc494cbac8.tar.gz |
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
Diffstat (limited to 'sbin/dumpfs')
0 files changed, 0 insertions, 0 deletions