mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-22 01:10:28 +00:00
e84661aa84
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>
11 lines
262 B
C
11 lines
262 B
C
#ifndef XFS_DISCARD_H
|
|
#define XFS_DISCARD_H 1
|
|
|
|
struct fstrim_range;
|
|
struct list_head;
|
|
|
|
extern int xfs_ioc_trim(struct xfs_mount *, struct fstrim_range __user *);
|
|
extern int xfs_discard_extents(struct xfs_mount *, struct list_head *);
|
|
|
|
#endif /* XFS_DISCARD_H */
|