]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: Capture state of the right inode in xfs_iflush_done
authorCarlos Maiolino <cmaiolino@redhat.com>
Fri, 22 Sep 2017 18:47:46 +0000 (11:47 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 26 Sep 2017 17:55:20 +0000 (10:55 -0700)
commit8a0fb364588c62796ad2dc742a4844ce5f158e56
tree55f94197dcc1d4ff26dbf153718dd5760e2e7519
parent5f7029385d24fcc01b94efa347f962e7163319fe
xfs: Capture state of the right inode in xfs_iflush_done

My previous patch: ac946c4da5eb9adab31665660ade3ae9ff75cb0c check for
XFS_LI_FAILED flag xfs_iflush done, so the failed item can be properly
resubmitted.

In the loop scanning other inodes being completed, it should check the
current item for the XFS_LI_FAILED, and not the initial one.

The state of the initial inode is checked after the loop ends

Kudos to Eric for catching this.

Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_inode_item.c