summaryrefslogtreecommitdiff
path: root/fs/xfs
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-01-05 17:46:09 -0800
committerDarrick J. Wong <djwong@kernel.org>2021-03-25 17:08:47 -0700
commitc3e179f4e9c2201c00ae35247541f66f5f1be351 (patch)
tree4cee31b24d676b1309ebf2099301132a139fda7c /fs/xfs
parent627926af7ca65b9c82ac27f48f006617caa806c2 (diff)
xfs: compact flag bits in the perag structure
Compact the flags in the per-ag structure so that we use less space. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/xfs_mount.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/xfs/xfs_mount.h b/fs/xfs/xfs_mount.h
index 1c68de51187c..6fee3a408080 100644
--- a/fs/xfs/xfs_mount.h
+++ b/fs/xfs/xfs_mount.h
@@ -344,13 +344,13 @@ typedef struct xfs_perag {
struct xfs_mount *pag_mount; /* owner filesystem */
xfs_agnumber_t pag_agno; /* AG this structure belongs to */
atomic_t pag_ref; /* perag reference count */
- char pagf_init; /* this agf's entry is initialized */
- char pagi_init; /* this agi's entry is initialized */
- char pagf_metadata; /* the agf is preferred to be metadata */
- char pagi_inodeok; /* The agi is ok for inodes */
+ uint8_t pagf_init:1; /* this agf's entry is initialized */
+ uint8_t pagi_init:1; /* this agi's entry is initialized */
+ uint8_t pagi_inodeok:1; /* The agi is ok for inodes */
+ uint8_t pagf_metadata:1; /* the agf is preferred to be metadata */
+ uint8_t pagf_agflreset:1; /* agfl requires reset before use */
uint8_t pagf_levels[XFS_BTNUM_AGF];
/* # of levels in bno & cnt btree */
- bool pagf_agflreset; /* agfl requires reset before use */
uint32_t pagf_flcount; /* count of blocks in freelist */
xfs_extlen_t pagf_freeblks; /* total free blocks */
xfs_extlen_t pagf_longest; /* longest free space */