From: Wang Shilong Date: Mon, 15 Apr 2013 12:56:49 +0000 (+0000) Subject: Btrfs: fix confusing edquot happening case X-Git-Tag: v3.10-rc1~31^2~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4fcd6be6bbd702ae1a6545c9b413681850a9814;p=pandora-kernel.git Btrfs: fix confusing edquot happening case Step to reproduce: mkfs.btrfs mount dd if=/dev/zero of=//data bs=1M count=10 sync btrfs quota enable btrfs qgroup create 0/5 btrfs qgroup limit 5M 0/5 rm -f //data sync btrfs qgroup show dd if=/dev/zero of=data bs=1M count=1 >From the perspective of users, qgroup's referenced or exclusive is negative,but user can not continue to write data! a workaround way is to cast u64 to s64 when doing qgroup reservation. Signed-off-by: Wang Shilong Reviewed-by: Arne Jansen Signed-off-by: Josef Bacik --- Reading git-diff-tree failed