]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: whiteouts release intents that are not in the AIL
authorDave Chinner <dchinner@redhat.com>
Wed, 4 May 2022 01:46:47 +0000 (11:46 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 4 May 2022 01:46:47 +0000 (11:46 +1000)
commit9e82bc7b69bf2e7fc1e6a0b3e93d6a7a76c898ef
tree2b2b27fc09d585daf873236d8c7a024749f5bea7
parent18c4afba536c33a853ef1c61d208cedf2976211e
xfs: whiteouts release intents that are not in the AIL

When we release an intent that a whiteout applies to, it will not
have been committed to the journal and so won't be in the AIL. Hence
when we drop the last reference to the intent, we do not want to try
to remove it from the AIL as that will trigger a filesystem
shutdown. Hence make the removal of intents from the AIL conditional
on them actually being in the AIL so we do the correct thing.

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