aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndrew Perepechko <andrew.perepechko@sun.com>2008-04-28 05:14:31 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-28 11:58:32 -0400
commit338bf9afda91ec005a1e9a0de4af0271cc167d56 (patch)
treee60edf0441efbe8215cdeb08bf05c1b6afff58a1 /include
parent3b0cb4caefeca6fe6b05c6c5a76e9c633b44c58f (diff)
quota: do not allow setting of quota limits to too high values
We should check whether quota limits set via Q_SETQUOTA are not exceeding limits which quota format is able to handle. Signed-off-by: Andrew Perepechko <andrew.perepechko@sun.com> 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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/quota.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/quota.h b/include/linux/quota.h
index eb560d031acd..326cb80e3867 100644
--- a/include/linux/quota.h
+++ b/include/linux/quota.h
@@ -206,6 +206,8 @@ struct mem_dqinfo {
206 unsigned long dqi_flags; 206 unsigned long dqi_flags;
207 unsigned int dqi_bgrace; 207 unsigned int dqi_bgrace;
208 unsigned int dqi_igrace; 208 unsigned int dqi_igrace;
209 qsize_t dqi_maxblimit;
210 qsize_t dqi_maxilimit;
209 union { 211 union {
210 struct v1_mem_dqinfo v1_i; 212 struct v1_mem_dqinfo v1_i;
211 struct v2_mem_dqinfo v2_i; 213 struct v2_mem_dqinfo v2_i;