]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: move xfs_clear_li_failed out of xfs_ail_delete_one()
authorDave Chinner <dchinner@redhat.com>
Mon, 29 Jun 2020 21:49:15 +0000 (14:49 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 7 Jul 2020 14:15:07 +0000 (07:15 -0700)
commit773cc852137824015f8a7109666747c96e7059b4
treea7d1e21b51a4c4cc871f1e1dd71ba360a49e6c78
parent93df62f8ac2cba8e09aa9a5a3ed449980b25c361
xfs: move xfs_clear_li_failed out of xfs_ail_delete_one()

xfs_ail_delete_one() is called directly from dquot and inode IO
completion, as well as from the generic xfs_trans_ail_delete()
function. Inodes are about to have their own failure handling, and
dquots will in future, too. Pull the clearing of the LI_FAILED flag
up into the callers so we can customise the code appropriately.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_dquot.c
fs/xfs/xfs_inode_item.c
fs/xfs/xfs_trans_ail.c