]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: store inode btree block counts in AGI header
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 17 Aug 2020 16:58:01 +0000 (09:58 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 16 Sep 2020 03:52:39 +0000 (20:52 -0700)
commit61429ad80f9886ed18c2a5ee659eaf58c2910a72
treee40f1c0e4a0ddf305426ae61e6f9561ff25d3232
parent2ac689dc98da82a6b9f5fae76421811e10aec61a
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>
fs/xfs/libxfs/xfs_ag.c
fs/xfs/libxfs/xfs_format.h
fs/xfs/libxfs/xfs_ialloc.c
fs/xfs/libxfs/xfs_ialloc_btree.c
fs/xfs/xfs_ondisk.h
fs/xfs/xfs_super.c