]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: remove last of unnecessary xfs_defer_cancel() callers
authorBrian Foster <bfoster@redhat.com>
Sat, 29 Sep 2018 03:41:58 +0000 (13:41 +1000)
committerDave Chinner <david@fromorbit.com>
Sat, 29 Sep 2018 03:41:58 +0000 (13:41 +1000)
commit5f4d28d7dbe9960e6d4e5caeadf66814662e5400
treedb2dcdff07f1ca24be625bb8b1e727b8d8f02547
parent26ccb99a5a376691b37659e5ac71129815b10e32
xfs: remove last of unnecessary xfs_defer_cancel() callers

Now that deferred operations are completely managed via
transactions, it's no longer necessary to cancel the dfops in error
paths that already cancel the associated transaction. There are a
few such calls lingering throughout the codebase.

Remove all remaining unnecessary calls to xfs_defer_cancel(). This
leaves xfs_defer_cancel() calls in two places. The first is the call
in the transaction cancel path itself, which facilitates this patch.
The second is made via the xfs_defer_finish() error path to provide
consistent error semantics with transaction commit. For example,
xfs_trans_commit() expects an xfs_defer_finish() failure to clean up
the dfops structure before it returns.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_attr.c
fs/xfs/libxfs/xfs_attr_remote.c
fs/xfs/xfs_bmap_util.c
fs/xfs/xfs_inode.c