diff options
author | Jan Kara <jack@suse.cz> | 2008-10-10 16:12:23 +0200 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2009-01-05 08:40:22 -0800 |
commit | 3d9ea253a0e73dccaa869888ec2ceb17ea76c810 (patch) | |
tree | 0a107f919605f68335bf55176b062facebcd51c9 /include | |
parent | 571b46e40bebb0d57130ca24c4a84dfd553adb91 (diff) | |
download | kernel_samsung_crespo-3d9ea253a0e73dccaa869888ec2ceb17ea76c810.zip kernel_samsung_crespo-3d9ea253a0e73dccaa869888ec2ceb17ea76c810.tar.gz kernel_samsung_crespo-3d9ea253a0e73dccaa869888ec2ceb17ea76c810.tar.bz2 |
quota: Add helpers to allow ocfs2 specific quota initialization, freeing and recovery
OCFS2 needs to peek whether quota structure is already in memory so
that it can avoid expensive cluster locking in that case. Similarly
when freeing dquots, it checks whether it is the last quota structure
user or not. Finally, it needs to get reference to dquot structure for
specified id and quota type when recovering quota file after crash.
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/quotaops.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/quotaops.h b/include/linux/quotaops.h index e840ca5..e3a1027 100644 --- a/include/linux/quotaops.h +++ b/include/linux/quotaops.h @@ -24,6 +24,10 @@ void sync_dquots(struct super_block *sb, int type); int dquot_initialize(struct inode *inode, int type); int dquot_drop(struct inode *inode); +int dquot_drop_locked(struct inode *inode); +struct dquot *dqget(struct super_block *sb, unsigned int id, int type); +void dqput(struct dquot *dquot); +int dquot_is_cached(struct super_block *sb, unsigned int id, int type); int dquot_alloc_space(struct inode *inode, qsize_t number, int prealloc); int dquot_alloc_inode(const struct inode *inode, qsize_t number); |