linux/fs/xfs/scrub
Dave Chinner 2e973b2cd4 xfs: convert remaining mount flags to state flags
The remaining mount flags kept in m_flags are actually runtime state
flags. These change dynamically, so they really should be updated
atomically so we don't potentially lose an update due to racing
modifications.

Convert these remaining flags to be stored in m_opstate and use
atomic bitops to set and clear the flags. This also adds a couple of
simple wrappers for common state checks - read only and shutdown.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
2021-08-19 10:07:13 -07:00
..
agheader_repair.c xfs: replace xfs_sb_version checks with feature flag checks 2021-08-19 10:07:12 -07:00
agheader.c xfs: replace xfs_sb_version checks with feature flag checks 2021-08-19 10:07:12 -07:00
alloc.c xfs: mark the record passed into xchk_btree functions as const 2021-08-18 18:46:01 -07:00
attr.c xfs: replace xfs_sb_version checks with feature flag checks 2021-08-19 10:07:12 -07:00
attr.h xfs: replace kmem_alloc_large() with kvmalloc() 2021-08-09 15:57:43 -07:00
bitmap.c treewide: Change list_sort to use const pointers 2021-04-08 16:04:22 -07:00
bitmap.h xfs: replace open-coded bitmap weight logic 2020-03-18 08:12:23 -07:00
bmap.c xfs: replace xfs_sb_version checks with feature flag checks 2021-08-19 10:07:12 -07:00
btree.c xfs: grab active perag ref when reading AG headers 2021-08-09 11:13:17 -07:00
btree.h xfs: mark the record passed into xchk_btree functions as const 2021-08-18 18:46:01 -07:00
common.c xfs: convert remaining mount flags to state flags 2021-08-19 10:07:13 -07:00
common.h xfs: grab active perag ref when reading AG headers 2021-08-09 11:13:17 -07:00
dabtree.c xfs: replace xfs_sb_version checks with feature flag checks 2021-08-19 10:07:12 -07:00
dabtree.h xfs: refactor btree node scrubbing 2019-11-10 16:54:19 -08:00
dir.c xfs: replace xfs_sb_version checks with feature flag checks 2021-08-19 10:07:12 -07:00
fscounters.c xfs: grab active perag ref when reading AG headers 2021-08-09 11:13:17 -07:00
health.c xfs: move xfs_perag_get/put to xfs_ag.[ch] 2021-06-02 10:48:24 +10:00
health.h xfs: scrub should only cross-reference with healthy btrees 2019-04-16 10:01:57 -07:00
ialloc.c xfs: replace xfs_sb_version checks with feature flag checks 2021-08-19 10:07:12 -07:00
inode.c xfs: replace xfs_sb_version checks with feature flag checks 2021-08-19 10:07:12 -07:00
parent.c xfs: get rid of the ip parameter to xchk_setup_* 2021-04-09 10:27:18 -07:00
quota.c xfs: remove the active vs running quota differentiation 2021-08-06 11:05:37 -07:00
refcount.c xfs: mark the record passed into xchk_btree functions as const 2021-08-18 18:46:01 -07:00
repair.c xfs: replace xfs_sb_version checks with feature flag checks 2021-08-19 10:07:12 -07:00
repair.h xfs: get rid of the ip parameter to xchk_setup_* 2021-04-09 10:27:18 -07:00
rmap.c xfs: mark the record passed into xchk_btree functions as const 2021-08-18 18:46:01 -07:00
rtbitmap.c xfs: make the record pointer passed to query_range functions const 2021-08-18 18:46:01 -07:00
scrub.c xfs: convert remaining mount flags to state flags 2021-08-19 10:07:13 -07:00
scrub.h xfs: remove unnecessary agno variable from struct xchk_ag 2021-08-18 18:46:00 -07:00
symlink.c xfs: remove XFS_IFINLINE 2021-04-15 09:35:51 -07:00
trace.c xfs: remove agno from btree cursor 2021-06-02 10:48:24 +10:00
trace.h xfs: start documenting common units and tags used in tracepoints 2021-08-19 10:07:11 -07:00
xfs_scrub.h xfs: fix scrub and remount-ro protection when running scrub 2021-04-09 10:27:13 -07:00