summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_discard.h
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2023-10-04 09:24:02 +1100
committerDave Chinner <david@fromorbit.com>2023-10-04 09:24:02 +1100
commit428c4435b063bebc7eddcd7d311546d6933efa62 (patch)
treee79082326ff243a890e9d09de170d3bf48542a44 /fs/xfs/xfs_discard.h
parent8a749fd1a8720d4619c91c8b6e7528c0a355c0aa (diff)
xfs: move log discard work to xfs_discard.c
Because we are going to use the same list-based discard submission interface for fstrim-based discards, too. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_discard.h')
-rw-r--r--fs/xfs/xfs_discard.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/xfs/xfs_discard.h b/fs/xfs/xfs_discard.h
index de92d9cc958f..2b1a85223a56 100644
--- a/fs/xfs/xfs_discard.h
+++ b/fs/xfs/xfs_discard.h
@@ -3,8 +3,10 @@
#define XFS_DISCARD_H 1
struct fstrim_range;
-struct list_head;
+struct xfs_mount;
+struct xfs_busy_extents;
-extern int xfs_ioc_trim(struct xfs_mount *, struct fstrim_range __user *);
+int xfs_discard_extents(struct xfs_mount *mp, struct xfs_busy_extents *busy);
+int xfs_ioc_trim(struct xfs_mount *mp, struct fstrim_range __user *fstrim);
#endif /* XFS_DISCARD_H */