]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs_{db,repair}: fix XFS_REFC_COW_START usage
authorDarrick J. Wong <djwong@kernel.org>
Wed, 23 Nov 2022 17:09:39 +0000 (09:09 -0800)
committerCarlos Maiolino <cem@kernel.org>
Fri, 9 Dec 2022 09:18:19 +0000 (10:18 +0100)
commit2b9d6f15b18d053dd8871b07d23d23a9afac2f81
tree5e0682e7371351aefc1cf65d5170e1e04d7f37da
parent945c7341dedab44ae5daed83377e6366c3fb8fee
xfs_{db,repair}: fix XFS_REFC_COW_START usage

This is really a bit field stashed in the upper bit of the rc_startblock
field, so change its usage patterns to use masking instead of integer
addition and subtraction.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
db/check.c
repair/scan.c