aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/quota.h
diff options
context:
space:
mode:
authorMingming Cao <cmm@us.ibm.com>2009-01-13 10:43:14 -0500
committerJan Kara <jack@suse.cz>2009-03-25 21:18:24 -0400
commit740d9dcd949a986c88886a591054a0cdb89ef669 (patch)
tree3a422d30c838c80d35b8d52a05a4c55d3c806e4e /include/linux/quota.h
parentf18df228997fb716990590d248663981a15f17d4 (diff)
quota: Add quota reservation claim and released operations
Reserved quota will be claimed at the block allocation time. Over-booked quota could be returned back with the release callback function. Signed-off-by: Mingming Cao <cmm@us.ibm.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'include/linux/quota.h')
-rw-r--r--include/linux/quota.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/quota.h b/include/linux/quota.h
index 54b837fa64f2..a510d91561f4 100644
--- a/include/linux/quota.h
+++ b/include/linux/quota.h
@@ -311,6 +311,12 @@ struct dquot_operations {
311 int (*write_info) (struct super_block *, int); /* Write of quota "superblock" */ 311 int (*write_info) (struct super_block *, int); /* Write of quota "superblock" */
312 /* reserve quota for delayed block allocation */ 312 /* reserve quota for delayed block allocation */
313 int (*reserve_space) (struct inode *, qsize_t, int); 313 int (*reserve_space) (struct inode *, qsize_t, int);
314 /* claim reserved quota for delayed alloc */
315 int (*claim_space) (struct inode *, qsize_t);
316 /* release rsved quota for delayed alloc */
317 void (*release_rsv) (struct inode *, qsize_t);
318 /* get reserved quota for delayed alloc */
319 qsize_t (*get_reserved_space) (struct inode *);
314}; 320};
315 321
316/* Operations handling requests from userspace */ 322/* Operations handling requests from userspace */