diff options
author | Andrew Perepechko <andrew.perepechko@sun.com> | 2008-04-28 11:14:31 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 17:58:32 +0200 |
commit | 338bf9afda91ec005a1e9a0de4af0271cc167d56 (patch) | |
tree | e60edf0441efbe8215cdeb08bf05c1b6afff58a1 /include | |
parent | kprobes: update document about batch registration (diff) | |
download | linux-338bf9afda91ec005a1e9a0de4af0271cc167d56.tar.xz linux-338bf9afda91ec005a1e9a0de4af0271cc167d56.zip |
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.h | 2 |
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 { unsigned long dqi_flags; unsigned int dqi_bgrace; unsigned int dqi_igrace; + qsize_t dqi_maxblimit; + qsize_t dqi_maxilimit; union { struct v1_mem_dqinfo v1_i; struct v2_mem_dqinfo v2_i; |