quota: correct space limit check
authorzhangyi (F) <yi.zhang@huawei.com>
Mon, 7 Aug 2017 13:35:05 +0000 (21:35 +0800)
committerJan Kara <jack@suse.cz>
Mon, 7 Aug 2017 14:51:28 +0000 (16:51 +0200)
commit41e327b586762833e48b3703d53312ac32f05f24
treecab5f841224d5fb7ca53c7e706891a0a1393d1e7
parentaae4e7a8bc44722fe70d58920a36916b1043195e
quota: correct space limit check

Currently we compare total space (curspace + rsvspace)
with space limit in quota-tools when setting grace time
and also in check_bdq(), but we missing rsvspace in
somewhere else, correct them. This patch also fix incorrect
zero dqb_btime and grace time updating failure when we use
rsvspace(e.g. ext4 dalloc feature).

Signed-off-by: zhangyi (F) <yi.zhang@huawei.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/dquot.c