diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2020-08-17 18:58:01 +0200 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2020-09-16 05:52:39 +0200 |
commit | 2a39946c984464e4aac82c556ba9915589be7323 (patch) | |
tree | e40f1c0e4a0ddf305426ae61e6f9561ff25d3232 /fs/xfs/libxfs/xfs_ialloc.c | |
parent | xfs: reuse _xfs_buf_read for re-reading the superblock (diff) | |
download | linux-2a39946c984464e4aac82c556ba9915589be7323.tar.xz linux-2a39946c984464e4aac82c556ba9915589be7323.zip |
xfs: store inode btree block counts in AGI header
Add a btree block usage counters for both inode btrees to the AGI header
so that we don't have to walk the entire finobt at mount time to create
the per-AG reservations.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_ialloc.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_ialloc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_ialloc.c b/fs/xfs/libxfs/xfs_ialloc.c index a6b37db55169..7c1ece5a5f05 100644 --- a/fs/xfs/libxfs/xfs_ialloc.c +++ b/fs/xfs/libxfs/xfs_ialloc.c @@ -2473,6 +2473,7 @@ xfs_ialloc_log_agi( offsetof(xfs_agi_t, agi_unlinked), offsetof(xfs_agi_t, agi_free_root), offsetof(xfs_agi_t, agi_free_level), + offsetof(xfs_agi_t, agi_iblocks), sizeof(xfs_agi_t) }; #ifdef DEBUG |