[PATCHSET 0/2] xfs: enable in-core block reservation for rt metadata

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

In preparation for adding reverse mapping and refcounting to the
realtime device, enhance the per-AG block reservation system for use
with realtime metadata.  This effectively allows us to pre-allocate
space for the rmap and refcount btrees in the same manner as we do for
the data device counterparts, which is how we avoid ENOSPC failures when
space is low but we've already committed to a COW operation.

If you're going to start using this mess, you probably ought to just
pull from my git trees, which are linked below.

This is an extraordinary way to destroy everything.  Enjoy!
Comments and questions are, as always, welcome.

--D

kernel git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=reserve-rt-metadata-space

xfsprogs git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=reserve-rt-metadata-space
---
 fs/xfs/libxfs/xfs_ag_resv.c |  116 +++++++++++++++++++++++++++++++++++++------
 fs/xfs/libxfs/xfs_ag_resv.h |    6 +-
 fs/xfs/libxfs/xfs_types.h   |    1 
 fs/xfs/scrub/fscounters.c   |    3 +
 fs/xfs/xfs_fsops.c          |    9 +++
 fs/xfs/xfs_mount.h          |   25 ++++++---
 fs/xfs/xfs_rtalloc.c        |   13 +++++
 fs/xfs/xfs_trace.h          |   43 ++++++++++++++--
 8 files changed, 183 insertions(+), 33 deletions(-)




[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux