mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 10:01:39 -05:00
__blkdev_issue_discard() always returns 0, making all error checking in XFS discard functions dead code. Change xfs_discard_extents() return type to void, remove error variable, error checking, and error logging for the __blkdev_issue_discard() call in same function. Update xfs_trim_perag_extents() and xfs_trim_rtgroup_extents() to ignore the xfs_discard_extents() return value and error checking code. Update xfs_discard_rtdev_extents() to ignore __blkdev_issue_discard() return value and error checking code. Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Chaitanya Kulkarni <ckulkarnilinux@gmail.com> Signed-off-by: Carlos Maiolino <cem@kernel.org>
13 lines
334 B
C
13 lines
334 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef XFS_DISCARD_H
|
|
#define XFS_DISCARD_H 1
|
|
|
|
struct fstrim_range;
|
|
struct xfs_mount;
|
|
struct xfs_busy_extents;
|
|
|
|
void 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 */
|