diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-01-07 14:02:04 +0100 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2011-01-12 03:28:29 +0100 |
commit | a46db60834883c1c8c665d7fcc7b4ab66f5966fc (patch) | |
tree | 962f134a2c7f771cdafdae4ff6caa9e36693dce5 /fs/xfs/linux-2.6/xfs_discard.h | |
parent | xfs: ensure log covering transactions are synchronous (diff) | |
download | linux-a46db60834883c1c8c665d7fcc7b4ab66f5966fc.tar.xz linux-a46db60834883c1c8c665d7fcc7b4ab66f5966fc.zip |
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>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_discard.h')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_discard.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/xfs/linux-2.6/xfs_discard.h b/fs/xfs/linux-2.6/xfs_discard.h new file mode 100644 index 000000000000..e82b6dd3e127 --- /dev/null +++ b/fs/xfs/linux-2.6/xfs_discard.h @@ -0,0 +1,8 @@ +#ifndef XFS_DISCARD_H +#define XFS_DISCARD_H 1 + +struct fstrim_range; + +extern int xfs_ioc_trim(struct xfs_mount *, struct fstrim_range __user *); + +#endif /* XFS_DISCARD_H */ |