]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xfs: use XFS_BUF_DADDR_NULL for daddrs in getfsmap code
authorDarrick J. Wong <djwong@kernel.org>
Wed, 11 Jun 2025 21:01:25 +0000 (14:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:07:20 +0000 (11:07 +0100)
commit28c32ce4260745ced2c0e41067e209146cbbf736
tree2d54e9ba167b83c76e35cea9626ad6376500f0e8
parentb30b13bcce9f4a497030ea2adf399da8e6e99a0d
xfs: use XFS_BUF_DADDR_NULL for daddrs in getfsmap code

[ Upstream commit 6b35cc8d9239569700cc7cc737c8ed40b8b9cfdb ]

Use XFS_BUF_DADDR_NULL (instead of a magic sentinel value) to mean "this
field is null" like the rest of xfs.

Cc: wozizhi@huawei.com
Fixes: e89c041338ed6 ("xfs: implement the GETFSMAP ioctl")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
Signed-off-by: Leah Rumancik <leah.rumancik@gmail.com>
Acked-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/xfs/xfs_fsmap.c