]> 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)
commitc8251885a977a6c2b2113b58d05654ee6c2a7739
tree7cbb2e92dcdfa9119f9a982ca5d0e7e8e51af868
parentd38ef7052cc49d19bd95efd5ae837a8698846913
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