mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 00:04:15 +08:00
7099bd0f24
To prepare for re-enabling delalloc on RT devices, track the data blocks (which use the RT device when the inode sits on it) and the indirect blocks (which don't) separately to xfs_mod_delalloc, and add a new percpu counter to also track the RT delalloc blocks. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: "Darrick J. Wong" <djwong@kernel.org> Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
22 lines
512 B
C
22 lines
512 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright (c) 2021-2024 Oracle. All Rights Reserved.
|
|
* Author: Darrick J. Wong <djwong@kernel.org>
|
|
*/
|
|
#ifndef __XFS_SCRUB_FSCOUNTERS_H__
|
|
#define __XFS_SCRUB_FSCOUNTERS_H__
|
|
|
|
struct xchk_fscounters {
|
|
struct xfs_scrub *sc;
|
|
uint64_t icount;
|
|
uint64_t ifree;
|
|
uint64_t fdblocks;
|
|
uint64_t frextents;
|
|
uint64_t frextents_delayed;
|
|
unsigned long long icount_min;
|
|
unsigned long long icount_max;
|
|
bool frozen;
|
|
};
|
|
|
|
#endif /* __XFS_SCRUB_FSCOUNTERS_H__ */
|