]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: rename XFS_REFC_COW_START to _COWFLAG
authorDarrick J. Wong <djwong@kernel.org>
Mon, 10 Oct 2022 18:13:20 +0000 (11:13 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 31 Oct 2022 15:58:22 +0000 (08:58 -0700)
commitce41590f9afff1d42a57428e298cd30186739152
tree4dc628d17aa96b5dea6aaedd233a9e37716cdbdc
parentd1bfc3e7dda04c89631c64c83a40ef8a9c4b6f2b
xfs: rename XFS_REFC_COW_START to _COWFLAG

We've been (ab)using XFS_REFC_COW_START as both an integer quantity and
a bit flag, even though it's *only* a bit flag.  Rename the variable to
reflect its nature and update the cast target since we're not supposed
to be comparing it to xfs_agblock_t now.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/libxfs/xfs_format.h
fs/xfs/libxfs/xfs_refcount.c
fs/xfs/libxfs/xfs_refcount.h