]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit773592fb90a6b0b1d994629cf41f27042344c7b9
treecab5f841224d5fb7ca53c7e706891a0a1393d1e7
parent7613cd8da5a8c547eec267568182d04d895b6284
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