diff options
author | Li Xi <pkuelelixi@gmail.com> | 2015-03-19 04:04:53 +0900 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2015-03-18 21:55:08 +0100 |
commit | 847aac644e92e5624f2c153bab409bf713d5ff9a (patch) | |
tree | 457739cbd1ca419d9d179a07e341bb81942885f7 /include/linux/quota.h | |
parent | 5ce1aca814354c5942cdb5604e142a49be7033eb (diff) | |
download | linux-847aac644e92e5624f2c153bab409bf713d5ff9a.tar.gz linux-847aac644e92e5624f2c153bab409bf713d5ff9a.tar.bz2 linux-847aac644e92e5624f2c153bab409bf713d5ff9a.zip |
vfs: Add general support to enforce project quota limits
This patch adds support for a new quota type PRJQUOTA for project quota
enforcement. Also a new method get_projid() is added into dquot_operations
structure.
Signed-off-by: Li Xi <lixi@ddn.com>
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'include/linux/quota.h')
-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 cf910d1f8efa..b2505acfd3c0 100644 --- a/include/linux/quota.h +++ b/include/linux/quota.h @@ -50,6 +50,7 @@ #undef USRQUOTA #undef GRPQUOTA +#undef PRJQUOTA enum quota_type { USRQUOTA = 0, /* element used for user quotas */ GRPQUOTA = 1, /* element used for group quotas */ @@ -319,6 +320,7 @@ struct dquot_operations { /* get reserved quota for delayed alloc, value returned is managed by * quota code only */ qsize_t *(*get_reserved_space) (struct inode *); + int (*get_projid) (struct inode *, kprojid_t *);/* Get project ID */ }; struct path; |