From: Wang Shilong Date: Tue, 19 Mar 2013 10:57:14 +0000 (+0000) Subject: Btrfs: fix missing qgroup reservation before fallocating X-Git-Tag: v3.9-rc5~8^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6113077cd319e747875ec71227d2b5cb54e08c76;p=pandora-kernel.git Btrfs: fix missing qgroup reservation before fallocating Steps to reproduce: mkfs.btrfs mount btrfs quota enable btrfs sub create /subv btrfs qgroup limit 10M /subv fallocate --length 20M /subv/data For the above example, fallocating will return successfully which is not expected, we try to fix it by doing qgroup reservation before fallocating. Signed-off-by: Wang Shilong Reviewed-by: Miao Xie Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed