]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita2404a3d5beb33d26e2cfe17f73ae308d2184406
tree962f134a2c7f771cdafdae4ff6caa9e36693dce5
parent93e82dd87cbbecc1c781c2b550c1a4c7780142bd
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