xfs: refactor log recovery check
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 1 Aug 2018 14:40:48 +0000 (07:40 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 1 Aug 2018 14:40:48 +0000 (07:40 -0700)
commit0c60d3aa0e2d007e7f79c96c118da25f594afe02
tree7cbb2e92dcdfa9119f9a982ca5d0e7e8e51af868
parentff23f4af7efd86cbb1bda42fe2171e0790f9cb5a
xfs: refactor log recovery check

Add a predicate to decide if the log is actively in recovery and use
that instead of open-coding a pagf_init check in the attr leaf verifier.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
fs/xfs/libxfs/xfs_attr_leaf.c
fs/xfs/xfs_log.c
fs/xfs/xfs_log.h