]> git.baikalelectronics.ru Git - kernel.git/commit
quota: don't set grace time when user isn't above softlimit
authorJan Kara <jack@suse.cz>
Thu, 8 Jan 2009 02:07:29 +0000 (18:07 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 8 Jan 2009 16:31:01 +0000 (08:31 -0800)
commit1214fd9d71ce7c170826acae3b17eca5d7bb627a
tree0c4bc724372953bdcf027eea2daf87bcfd8e4a2f
parent7ddc486f2bbadd13ad527627ecb0a7ec7dd564c0
quota: don't set grace time when user isn't above softlimit

do_set_dqblk() allowed SETDQBLK quotactl to set user's grace time even if
user was not above his softlimit.  This does not make much sence and by
coincidence causes quota code to omit softlimit warning when user really
exceeds softlimit.  This patch makes do_set_dqblk() reset user's grace
time if he has not exceeded softlimit.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/dquot.c