OSDN Git Service

xfs: hoist refcount record merge predicates
authorDarrick J. Wong <djwong@kernel.org>
Wed, 30 Nov 2022 17:25:51 +0000 (09:25 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 1 Dec 2022 17:32:04 +0000 (09:32 -0800)
commit9d720a5a658f5135861773f26e927449bef93d61
tree671bb2541a7340224dbc5472a311bb54364cdac5
parent4b4d11bbeca4e3ebb235c8c3c875a986a8c90427
xfs: hoist refcount record merge predicates

Hoist these multiline conditionals into separate static inline helpers
to improve readability and set the stage for corruption fixes that will
be introduced in the next patch.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Xiao Yang <yangx.jy@fujitsu.com>
fs/xfs/libxfs/xfs_refcount.c