Skip to content

btfs: Subvolume Quota Groups

Arne Jansen linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v0 Latest18 patches 8 repliesIn review

Patches in v0 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18btrfs: mark delayed refs as for cowfs/btrfs/ctree.c fs/btrfs/ctree.h fs/btrfs/delayed-ref.c +8 more+136 -960 replies
2/18btrfs: always save ref_root in delayed refsfs/btrfs/delayed-ref.c fs/btrfs/delayed-ref.h+12 -180 replies
3/18btrfs: add nested locking mode for pathsfs/btrfs/ctree.c fs/btrfs/ctree.h fs/btrfs/extent_io.c +3 more+66 -133 replies
4/18btrfs: qgroup on-disk formatfs/btrfs/ctree.h+136 -00 replies
5/18btrfs: add helper for tree enumerationfs/btrfs/ctree.c fs/btrfs/ctree.h+82 -00 replies
6/18btrfs: check the root passed to btrfs_end_transactionfs/btrfs/transaction.c fs/btrfs/transaction.h+12 -00 replies
7/18btrfs: generic data structure to build unique listsfs/btrfs/Makefile fs/btrfs/ulist.c fs/btrfs/ulist.h+183 -14 replies
8/18btrfs: added helper to create new treesfs/btrfs/disk-io.c fs/btrfs/disk-io.h+79 -00 replies
9/18btrfs: qgroup state and initializationfs/btrfs/ctree.h fs/btrfs/disk-io.c+39 -00 replies
10/18btrfs: Test code to change the order of delayed-ref processingfs/btrfs/extent-tree.c+50 -00 replies
11/18btrfs: add sequence numbers to delayed refsfs/btrfs/delayed-ref.c fs/btrfs/delayed-ref.h fs/btrfs/transaction.c+92 -40 replies
12/18btrfs: put back delayed refs that are too newfs/btrfs/delayed-ref.c fs/btrfs/extent-tree.c+47 -230 replies
13/18btrfs: qgroup implementation and prototypesfs/btrfs/Makefile fs/btrfs/ctree.h fs/btrfs/ioctl.h +1 more+2208 -10 replies
14/18btrfs: quota tree support and startupfs/btrfs/disk-io.c+41 -60 replies
15/18btrfs: hooks for qgroup to record delayed refsfs/btrfs/delayed-ref.c fs/btrfs/transaction.c+25 -60 replies
16/18btrfs: hooks to reserve qgroup spacefs/btrfs/extent-tree.c fs/btrfs/transaction.c fs/btrfs/transaction.h+30 -00 replies
17/18btrfs: add qgroup ioctlsfs/btrfs/ioctl.c fs/btrfs/ioctl.h+212 -01 reply
18/18btrfs: 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 v0 yet.

Read the v0 thread

Cover letter [PATCH v0 00/18] btfs: Subvolume Quota Groups

This is a first draft of a subvolume quota implementation. It is possible to limit subvolumes and any group of subvolumes and also to track the amount of space that will get freed when deleting snapshots.

The current version is functionally incomplete, with the main missing feature being the initial scan and rescan of an existing filesystem.

I put some effort into writing an introduction into the concepts and implementation which can be found at

http://sensille.com/qgroups.pdf

The purpose of getting it out in this early stage is to get as much input as possible, in regard to concepts, implementation and testing. The accompanying user mode parts will take some additional days to gather.

Thanks,
Arne

Arne Jansen (18):
btrfs: mark delayed refs as for cow
btrfs: always save ref_root in delayed refs
btrfs: add nested locking mode for paths
btrfs: qgroup on-disk format
btrfs: add helper for tree enumeration
btrfs: check the root passed to btrfs_end_transaction
btrfs: generic data structure to build unique lists
btrfs: added helper to create new trees
btrfs: qgroup state and initialization
btrfs: Test code to change the order of delayed-ref processing
btrfs: add sequence numbers to delayed refs
btrfs: put back delayed refs that are too new
btrfs: qgroup implementation and prototypes
btrfs: quota tree support and startup
btrfs: hooks for qgroup to record delayed refs
btrfs: hooks to reserve qgroup space
btrfs: add qgroup ioctls
btrfs: add qgroup inheritance

 fs/btrfs/Makefile      |    3 +-
 fs/btrfs/ctree.c       |  114 +++-
 fs/btrfs/ctree.h       |  224 +++++-
 fs/btrfs/delayed-ref.c |  188 ++++--
 fs/btrfs/delayed-ref.h |   48 +-
 fs/btrfs/disk-io.c     |  130 +++-
 fs/btrfs/disk-io.h     |    3 +
 fs/btrfs/extent-tree.c |  185 ++++-
 fs/btrfs/extent_io.c   |    1 +
 fs/btrfs/extent_io.h   |    2 +
 fs/btrfs/file.c        |   10 +-
 fs/btrfs/inode.c       |    2 +-
 fs/btrfs/ioctl.c       |  247 +++++-
 fs/btrfs/ioctl.h       |   62 ++-
 fs/btrfs/locking.c     |   51 ++-
 fs/btrfs/locking.h     |    2 +-
 fs/btrfs/qgroup.c      | 2151 ++++++++++++++++++++++++++++++++++++++++++++++++
 fs/btrfs/relocation.c  |   18 +-
 fs/btrfs/transaction.c |   45 +-
 fs/btrfs/transaction.h |    8 +
 fs/btrfs/tree-log.c    |    2 +-
 fs/btrfs/ulist.c       |  122 +++
 fs/btrfs/ulist.h       |   59 ++
 23 files changed, 3501 insertions(+), 176 deletions(-)
 create mode 100644 fs/btrfs/qgroup.c
 create mode 100644 fs/btrfs/ulist.c
 create mode 100644 fs/btrfs/ulist.h
Signature · 1 line
1.7.3.4