]> git.ipfire.org Git - people/ms/linux.git/commit - fs/xfs/xfs_extfree_item.c
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)
commitf5b81200b6c166f78b73b3e2ca3e8f0c34c9daaf
tree8bf06c90405a7e371bf708b1fe8c7c2e3815698a
parent5ddd658ea878f8dbae5ec33dba6cfdabb5056916
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