diff options
author | Dmitry Monakhov <dmonakhov@openvz.org> | 2010-02-16 00:31:50 -0500 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2010-03-04 18:20:26 -0500 |
commit | 8ddd69d6df4758bf0cab981481af24cc84419567 (patch) | |
tree | 126eb5877e092963b7ed1cf143e3ce0bac6a7c85 /include/linux | |
parent | ad1e6e8da9fe8cb7ecfde8eabacedc3b50fceae4 (diff) |
quota: generalize quota transfer interface
Current quota transfer interface support only uid/gid.
This patch extend interface in order to support various quotas types
The goal is accomplished without changes in most frequently used
vfs_dq_transfer() func.
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/quota.h | 2 | ||||
-rw-r--r-- | include/linux/quotaops.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/quota.h b/include/linux/quota.h index 92547a57e25a..edf34f2fe87d 100644 --- a/include/linux/quota.h +++ b/include/linux/quota.h | |||
@@ -301,7 +301,7 @@ struct dquot_operations { | |||
301 | int (*alloc_inode) (const struct inode *, qsize_t); | 301 | int (*alloc_inode) (const struct inode *, qsize_t); |
302 | int (*free_space) (struct inode *, qsize_t); | 302 | int (*free_space) (struct inode *, qsize_t); |
303 | int (*free_inode) (const struct inode *, qsize_t); | 303 | int (*free_inode) (const struct inode *, qsize_t); |
304 | int (*transfer) (struct inode *, struct iattr *); | 304 | int (*transfer) (struct inode *, qid_t *, unsigned long); |
305 | int (*write_dquot) (struct dquot *); /* Ordinary dquot write */ | 305 | int (*write_dquot) (struct dquot *); /* Ordinary dquot write */ |
306 | struct dquot *(*alloc_dquot)(struct super_block *, int); /* Allocate memory for new dquot */ | 306 | struct dquot *(*alloc_dquot)(struct super_block *, int); /* Allocate memory for new dquot */ |
307 | void (*destroy_dquot)(struct dquot *); /* Free memory for dquot */ | 307 | void (*destroy_dquot)(struct dquot *); /* Free memory for dquot */ |
diff --git a/include/linux/quotaops.h b/include/linux/quotaops.h index e563a20cff4f..e1cae204b5d9 100644 --- a/include/linux/quotaops.h +++ b/include/linux/quotaops.h | |||
@@ -43,7 +43,7 @@ void dquot_release_reserved_space(struct inode *inode, qsize_t number); | |||
43 | int dquot_free_space(struct inode *inode, qsize_t number); | 43 | int dquot_free_space(struct inode *inode, qsize_t number); |
44 | int dquot_free_inode(const struct inode *inode, qsize_t number); | 44 | int dquot_free_inode(const struct inode *inode, qsize_t number); |
45 | 45 | ||
46 | int dquot_transfer(struct inode *inode, struct iattr *iattr); | 46 | int dquot_transfer(struct inode *inode, qid_t *chid, unsigned long mask); |
47 | int dquot_commit(struct dquot *dquot); | 47 | int dquot_commit(struct dquot *dquot); |
48 | int dquot_acquire(struct dquot *dquot); | 48 | int dquot_acquire(struct dquot *dquot); |
49 | int dquot_release(struct dquot *dquot); | 49 | int dquot_release(struct dquot *dquot); |