]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: qgroup: free reserved in exceeding quota.
authorDongsheng Yang <yangds.fnst@cn.fujitsu.com>
Fri, 12 Dec 2014 08:44:34 +0000 (16:44 +0800)
committerChris Mason <clm@fb.com>
Mon, 13 Apr 2015 14:52:46 +0000 (07:52 -0700)
commit6e4f3d81c3a52394d9085962051cfe4e2a852430
treeef99ed7680b2e4c47e4ae0687cc4fc6779e9c105
parentc448924c31c142690acf6980bbbe6a1261893905
Btrfs: qgroup: free reserved in exceeding quota.

When we exceed quota limit in writing, we will free
some reserved extent when we need to drop but not free
account in qgroup. It means, each time we exceed quota
in writing, there will be some remain space in qg->reserved
we can not use any more. If things go on like this, the
all space will be ate up.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/extent-tree.c