xfs: add online discard support
authorChristoph Hellwig <hch@infradead.org>
Fri, 20 May 2011 13:45:32 +0000 (13:45 +0000)
committerAlex Elder <aelder@sgi.com>
Tue, 24 May 2011 16:17:13 +0000 (11:17 -0500)
commite84661aa84e2e003738563f65155d4f12dc474e7
tree9f9b6d2fac2048c5fb8c2728bcf2930435890d4f
parentbf59170a66bc3eaf3ee513aa6ce9774aa2ab5188
xfs: add online discard support

Now that we have reliably tracking of deleted extents in a
transaction we can easily implement "online" discard support
which calls blkdev_issue_discard once a transaction commits.

The actual discard is a two stage operation as we first have
to mark the busy extent as not available for reuse before we
can start the actual discard.  Note that we don't bother
supporting discard for the non-delaylog mode.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
Documentation/filesystems/xfs.txt
fs/xfs/linux-2.6/xfs_discard.c
fs/xfs/linux-2.6/xfs_discard.h
fs/xfs/linux-2.6/xfs_super.c
fs/xfs/xfs_ag.h
fs/xfs/xfs_alloc.c
fs/xfs/xfs_alloc.h
fs/xfs/xfs_log_cil.c
fs/xfs/xfs_mount.h
fs/xfs/xfs_trans.c