]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: introduce attr remove initial states into xfs_attr_set_iter
authorDave Chinner <dchinner@redhat.com>
Thu, 12 May 2022 05:12:56 +0000 (15:12 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 12 May 2022 05:12:56 +0000 (15:12 +1000)
commit2adc56a7011fb14086db630e98699e24dc3a30e5
tree5d804404c313593aa27df7ce1f99a656aa66aa6c
parentb52abc4a1bdf07ff915615dd7e423627ce67a022
xfs: introduce attr remove initial states into xfs_attr_set_iter

We need to merge the add and remove code paths to enable safe
recovery of replace operations. Hoist the initial remove states from
xfs_attr_remove_iter into xfs_attr_set_iter. We will make use of
them in the next patches.

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/libxfs/xfs_attr.c
fs/xfs/libxfs/xfs_attr.h
fs/xfs/xfs_trace.h