diff options
author | Dave Chinner <dchinner@redhat.com> | 2023-10-04 01:24:02 +0300 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2023-10-04 01:24:02 +0300 |
commit | 428c4435b063bebc7eddcd7d311546d6933efa62 (patch) | |
tree | e79082326ff243a890e9d09de170d3bf48542a44 /fs/xfs/xfs_discard.h | |
parent | 8a749fd1a8720d4619c91c8b6e7528c0a355c0aa (diff) | |
download | linux-428c4435b063bebc7eddcd7d311546d6933efa62.tar.xz |
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.h | 6 |
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 */ |