]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd336397fead4994c434e657452c9aa076b4de203
tree7cbb2e92dcdfa9119f9a982ca5d0e7e8e51af868
parent6d13a62f9a0f247cb9d55e2769c55c795168ee4a
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