]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: add log item flags to indicate intents
authorDave Chinner <dchinner@redhat.com>
Wed, 4 May 2022 01:46:09 +0000 (11:46 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 4 May 2022 01:46:09 +0000 (11:46 +1000)
commitcbc401da6d4aa914d6e4b4bc788972f14fd27c63
tree8bf06c90405a7e371bf708b1fe8c7c2e3815698a
parentfb50b4349ef40994a800d6a6b0f44cecc7c7c3e8
xfs: add log item flags to indicate intents

We currently have a couple of helper functions that try to infer
whether the log item is an intent or intent done item from the
combinations of operations it supports.  This is incredibly fragile
and not very efficient as it requires checking specific combinations
of ops.

We need to be able to identify intent and intent done items quickly
and easily in upcoming patches, so simply add intent and intent done
type flags to the log item ops flags. These are static flags to
begin with, so intent items should have been typed like this from
the start.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_bmap_item.c
fs/xfs/xfs_extfree_item.c
fs/xfs/xfs_refcount_item.c
fs/xfs/xfs_rmap_item.c
fs/xfs/xfs_trans.h