xfs: rmap btree add more reserved blocks
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 3 Aug 2016 01:31:47 +0000 (11:31 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 3 Aug 2016 01:31:47 +0000 (11:31 +1000)
commit8018026ef29756af6144e2e2e8dffc9c2ed0d6f7
treee5c3ea9539212cac5e39a9e47f6ddd557820aa46
parent00f4e4f9073cb6d455c27dc8e92b421edcdc5011
xfs: rmap btree add more reserved blocks

Originally-From: Dave Chinner <dchinner@redhat.com>

XFS reserves a small amount of space in each AG for the minimum
number of free blocks needed for operation. Adding the rmap btree
increases the number of reserved blocks, but it also increases the
complexity of the calculation as the free inode btree is optional
(like the rmbt).

Rather than calculate the prealloc blocks every time we need to
check it, add a function to calculate it at mount time and store it
in the struct xfs_mount, and convert the XFS_PREALLOC_BLOCKS macro
just to use the xfs-mount variable directly.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_alloc.c
fs/xfs/libxfs/xfs_alloc.h
fs/xfs/libxfs/xfs_format.h
fs/xfs/xfs_fsops.c
fs/xfs/xfs_mount.c
fs/xfs/xfs_mount.h
This page took 0.030658 seconds and 5 git commands to generate.