diff options
author | Dave Chinner <dchinner@redhat.com> | 2021-08-11 02:59:02 +0200 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-08-16 21:09:28 +0200 |
commit | e1d06e5f668a403f48538f0d6b163edfd4342adf (patch) | |
tree | 6cc1a1d760374d1fefbf0c9d37b320558acae63b /fs/xfs/xfs_log.h | |
parent | xfs: move recovery needed state updates to xfs_log_mount_finish (diff) | |
download | linux-e1d06e5f668a403f48538f0d6b163edfd4342adf.tar.xz linux-e1d06e5f668a403f48538f0d6b163edfd4342adf.zip |
xfs: convert log flags to an operational state field
log->l_flags doesn't actually contain "flags" as such, it contains
operational state information that can change at runtime. For the
shutdown state, this at least should be an atomic bit because
it is read without holding locks in many places and so using atomic
bitops for the state field modifications makes sense.
This allows us to use things like test_and_set_bit() on state
changes (e.g. setting XLOG_TAIL_WARN) to avoid races in setting the
state when we aren't holding locks.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_log.h')
-rw-r--r-- | fs/xfs/xfs_log.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/xfs/xfs_log.h b/fs/xfs/xfs_log.h index b274fb9dcd8d..d1235f5073fe 100644 --- a/fs/xfs/xfs_log.h +++ b/fs/xfs/xfs_log.h @@ -138,7 +138,6 @@ void xfs_log_work_queue(struct xfs_mount *mp); int xfs_log_quiesce(struct xfs_mount *mp); void xfs_log_clean(struct xfs_mount *mp); bool xfs_log_check_lsn(struct xfs_mount *, xfs_lsn_t); -bool xfs_log_in_recovery(struct xfs_mount *); xfs_lsn_t xlog_grant_push_threshold(struct xlog *log, int need_bytes); |