xfs: add FITRIM support
authorChristoph Hellwig <hch@infradead.org>
Fri, 7 Jan 2011 13:02:04 +0000 (13:02 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 12 Jan 2011 02:28:29 +0000 (20:28 -0600)
commita46db60834883c1c8c665d7fcc7b4ab66f5966fc
tree962f134a2c7f771cdafdae4ff6caa9e36693dce5
parentc58efdb442bb49dea1d148f207560c41918c1bf4
xfs: add FITRIM support

Allow manual discards from userspace using the FITRIM ioctl.  This is not
intended to be run during normal workloads, as the freepsace btree walks
can cause large performance degradation.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/Makefile
fs/xfs/linux-2.6/xfs_discard.c [new file with mode: 0644]
fs/xfs/linux-2.6/xfs_discard.h [new file with mode: 0644]
fs/xfs/linux-2.6/xfs_ioctl.c
fs/xfs/linux-2.6/xfs_trace.h
fs/xfs/xfs_alloc.c
fs/xfs/xfs_alloc.h