]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: add a xfs_group_type_buftarg helper
authorChristoph Hellwig <hch@lst.de>
Mon, 7 Jul 2025 12:53:14 +0000 (14:53 +0200)
committerCarlos Maiolino <cem@kernel.org>
Tue, 8 Jul 2025 11:30:26 +0000 (13:30 +0200)
commite74d1fa6a7d738c009a1dc7d739e64000c0d3d33
treed099f7182ae47888e8867d9c0183d79f9d19f87b
parentd9b1e348cff7ed13e30886de7a72e1fa0e235863
xfs: add a xfs_group_type_buftarg helper

Generalize the xfs_group_type helper in the discard code to return a buftarg
and move it to xfs_mount.h, and use the result in xfs_dax_notify_dev_failure.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_discard.c
fs/xfs/xfs_mount.h
fs/xfs/xfs_notify_failure.c