mbox series

[v3,0/2] xfs: set aside allocation btree blocks from block reservation

Message ID 20210318161707.723742-1-bfoster@redhat.com (mailing list archive)
Headers show
Series xfs: set aside allocation btree blocks from block reservation | expand

Message

Brian Foster March 18, 2021, 4:17 p.m. UTC
Hi all,

This is v3 of the allocbt block set aside fixup. The primary change in
v3 is to filter out rmapbt blocks from the usage accounting. rmapbt
blocks live in free space similar to allocbt blocks, but are managed
appropriately via perag reservation and so should not be set aside from
reservation requests.

Brian

v3:
- Use a mount flag for easy detection of active perag reservation.
- Filter rmapbt blocks from allocbt block accounting.
v2: https://lore.kernel.org/linux-xfs/20210222152108.896178-1-bfoster@redhat.com/
- Use an atomic counter instead of a percpu counter.
v1: https://lore.kernel.org/linux-xfs/20210217132339.651020-1-bfoster@redhat.com/

Brian Foster (2):
  xfs: set a mount flag when perag reservation is active
  xfs: set aside allocation btree blocks from block reservation

 fs/xfs/libxfs/xfs_ag_resv.c     | 24 ++++++++++++++----------
 fs/xfs/libxfs/xfs_alloc.c       | 12 ++++++++++++
 fs/xfs/libxfs/xfs_alloc_btree.c |  2 ++
 fs/xfs/xfs_mount.c              | 18 +++++++++++++++++-
 fs/xfs/xfs_mount.h              |  7 +++++++
 5 files changed, 52 insertions(+), 11 deletions(-)

Comments

Brian Foster April 9, 2021, 2:17 p.m. UTC | #1
On Thu, Mar 18, 2021 at 12:17:05PM -0400, Brian Foster wrote:
> Hi all,
> 
> This is v3 of the allocbt block set aside fixup. The primary change in
> v3 is to filter out rmapbt blocks from the usage accounting. rmapbt
> blocks live in free space similar to allocbt blocks, but are managed
> appropriately via perag reservation and so should not be set aside from
> reservation requests.
> 
> Brian
> 
> v3:
> - Use a mount flag for easy detection of active perag reservation.
> - Filter rmapbt blocks from allocbt block accounting.
> v2: https://lore.kernel.org/linux-xfs/20210222152108.896178-1-bfoster@redhat.com/
> - Use an atomic counter instead of a percpu counter.
> v1: https://lore.kernel.org/linux-xfs/20210217132339.651020-1-bfoster@redhat.com/
> 

Ping on this series..? AFAICT there is no outstanding feedback..

Brian

> Brian Foster (2):
>   xfs: set a mount flag when perag reservation is active
>   xfs: set aside allocation btree blocks from block reservation
> 
>  fs/xfs/libxfs/xfs_ag_resv.c     | 24 ++++++++++++++----------
>  fs/xfs/libxfs/xfs_alloc.c       | 12 ++++++++++++
>  fs/xfs/libxfs/xfs_alloc_btree.c |  2 ++
>  fs/xfs/xfs_mount.c              | 18 +++++++++++++++++-
>  fs/xfs/xfs_mount.h              |  7 +++++++
>  5 files changed, 52 insertions(+), 11 deletions(-)
> 
> -- 
> 2.26.2
>