diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2016-08-17 00:31:49 +0200 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2016-08-17 00:31:49 +0200 |
commit | f32866fdc9ed077c3bc7160f4f53d6a479201d46 (patch) | |
tree | 145fbe56fa8402d6ad2756ce966461f1103febeb /fs/xfs/xfs_fsops.c | |
parent | xfs: don't invalidate whole file on DAX read/write (diff) | |
download | linux-f32866fdc9ed077c3bc7160f4f53d6a479201d46.tar.xz linux-f32866fdc9ed077c3bc7160f4f53d6a479201d46.zip |
xfs: store rmapbt block count in the AGF
Track the number of blocks used for the rmapbt in the AGF. When we
get to the AG reservation code we need this counter to quickly
make our reservation during mount.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_fsops.c')
-rw-r--r-- | fs/xfs/xfs_fsops.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_fsops.c b/fs/xfs/xfs_fsops.c index 0f96847b90e1..0b7f986745c1 100644 --- a/fs/xfs/xfs_fsops.c +++ b/fs/xfs/xfs_fsops.c @@ -248,6 +248,7 @@ xfs_growfs_data_private( agf->agf_roots[XFS_BTNUM_RMAPi] = cpu_to_be32(XFS_RMAP_BLOCK(mp)); agf->agf_levels[XFS_BTNUM_RMAPi] = cpu_to_be32(1); + agf->agf_rmap_blocks = cpu_to_be32(1); } agf->agf_flfirst = cpu_to_be32(1); |