search for: btrfs_qgroup_free

Displaying 3 results from an estimated 3 matches for "btrfs_qgroup_free".

2013 Mar 01
0
[PATCH 1/2] Btrfs: don't call btrfs_qgroup_free if just btrfs_qgroup_reserve fails
From: Wang Shilong <wangsl-fnst@cn.fujitsu.com> commit eb6b88d92c6df083dd09a8c471011e3788dfd7c6 leads into another bug. If it is just because qgroup_reserve fails, the function btrfs_qgroup_free should not be called, otherwise, it will cause the wrong quota accounting. Signed-off-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com> --- fs/btrfs/extent-tree.c | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c i...
2012 Oct 04
3
[PATCH] btrfs ulist use rbtree instead
...e(struct btrfs_root *root, u64 num_bytes) /* * no limits exceeded, now record the reservation into all qgroups */ - ULIST_ITER_INIT(&uiter); + ULIST_ITER_INIT(ulist, &uiter); while ((unode = ulist_next(ulist, &uiter))) { struct btrfs_qgroup *qg; @@ -1542,7 +1542,7 @@ void btrfs_qgroup_free(struct btrfs_root *root, u64 num_bytes) ulist = ulist_alloc(GFP_ATOMIC); ulist_add(ulist, qgroup->qgroupid, (unsigned long)qgroup, GFP_ATOMIC); - ULIST_ITER_INIT(&uiter); + ULIST_ITER_INIT(ulist, &uiter); while ((unode = ulist_next(ulist, &uiter))) { struct btrfs_qgroup *q...
2011 Oct 06
26
[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