Skip to content

Btrfs: subvolume quota groups (qgroups)

Jan Schmidt linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15Btrfs: fix buffer leak in btrfs_next_old_leaffs/btrfs/ctree.c+1 -00 replies
2/15Btrfs: join tree mod log code with the code holding back delayed refsfs/btrfs/backref.c fs/btrfs/backref.h fs/btrfs/ctree.c +6 more+240 -2190 replies
3/15Btrfs: qgroup on-disk formatfs/btrfs/ctree.h+136 -00 replies
4/15Btrfs: add helper for tree enumerationfs/btrfs/ctree.c fs/btrfs/ctree.h+75 -01 reply
5/15Btrfs: check the root passed to btrfs_end_transactionfs/btrfs/transaction.c fs/btrfs/transaction.h+12 -00 replies
6/15Btrfs: added helper to create new treesfs/btrfs/disk-io.c fs/btrfs/disk-io.h+83 -10 replies
7/15Btrfs: qgroup state and initializationfs/btrfs/ctree.h fs/btrfs/disk-io.c+31 -00 replies
8/15Btrfs: Test code to change the order of delayed-ref processingfs/btrfs/extent-tree.c+49 -00 replies
9/15Btrfs: qgroup implementation and prototypesfs/btrfs/Makefile fs/btrfs/ctree.h fs/btrfs/extent-tree.c +4 more+1681 -10 replies
10/15Btrfs: call the qgroup accounting functionsfs/btrfs/extent-tree.c fs/btrfs/transaction.c+17 -00 replies
11/15Btrfs: quota tree support and startupfs/btrfs/ctree.h fs/btrfs/disk-io.c+42 -60 replies
12/15Btrfs: hooks for qgroup to record delayed refsfs/btrfs/delayed-ref.c fs/btrfs/delayed-ref.h fs/btrfs/transaction.c+36 -60 replies
13/15Btrfs: hooks to reserve qgroup spacefs/btrfs/extent-tree.c fs/btrfs/transaction.c fs/btrfs/transaction.h+29 -00 replies
14/15Btrfs: add qgroup ioctlsfs/btrfs/ioctl.c fs/btrfs/ioctl.h+212 -00 replies
15/15Btrfs: add qgroup inheritancefs/btrfs/ioctl.c fs/btrfs/ioctl.h fs/btrfs/transaction.c +1 more+61 -180 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 00/15] Btrfs: subvolume quota groups (qgroups)

This is a new version of Arne's qgroup patches from last October. The old patches didn't get the backref walking right, which is now based on the tree modification log.

You can limit the space available to subvolumes or any group of subvolumes. You can determine the amount of space that will get freed when deleting a snapshot.

The initial scan is still missing, so expect negative counters when you enable quotas on a non-empty volume and then delete stuff.

Arne's introduction and concept description can still be found at

http://sensille.com/qgroups.pdf

You can pull these patches from my git repository

git://git.jan-o-sch.net/btrfs-unstable qgroup

The user mode patches required were sent at October 11, 2011 by Arne, subject "[PATCH v0] btrfs-progs: add qgroup commands".

I tried to include some fair benchmark results with this cover letter. However, I tried several disk benchmarks from the phoronix test suite, none of them resulted in any write throughput decrease. I will have to create a more realistic setup on my own to benchmark the impact of qgroups (suggestions welcome). For now, I just wanted to get that patch set out :-)

Thanks,
-Jan

Arne Jansen (11):
Btrfs: qgroup on-disk format
Btrfs: add helper for tree enumeration
Btrfs: check the root passed to btrfs_end_transaction
Btrfs: added helper to create new trees
Btrfs: qgroup state and initialization
Btrfs: Test code to change the order of delayed-ref processing
Btrfs: qgroup implementation and prototypes
Btrfs: quota tree support and startup
Btrfs: hooks to reserve qgroup space
Btrfs: add qgroup ioctls
Btrfs: add qgroup inheritance

Jan Schmidt (4):
Btrfs: fix buffer leak in btrfs_next_old_leaf
Btrfs: join tree mod log code with the code holding back delayed refs
Btrfs: call the qgroup accounting functions
Btrfs: hooks for qgroup to record delayed refs

 fs/btrfs/Makefile      |    2 +-
 fs/btrfs/backref.c     |   30 +-
 fs/btrfs/backref.h     |    3 +-
 fs/btrfs/ctree.c       |  348 ++++++++----
 fs/btrfs/ctree.h       |  233 +++++++-
 fs/btrfs/delayed-ref.c |   56 +-
 fs/btrfs/delayed-ref.h |   62 +--
 fs/btrfs/disk-io.c     |  134 ++++-
 fs/btrfs/disk-io.h     |    6 +
 fs/btrfs/extent-tree.c |  119 ++++-
 fs/btrfs/ioctl.c       |  244 +++++++-
 fs/btrfs/ioctl.h       |   62 ++-
 fs/btrfs/qgroup.c      | 1571 ++++++++++++++++++++++++++++++++++++++++++++++++
 fs/btrfs/transaction.c |   57 ++-
 fs/btrfs/transaction.h |   11 +
 15 files changed, 2696 insertions(+), 242 deletions(-)
 create mode 100644 fs/btrfs/qgroup.c
Signature · 1 line
1.7.3.4