aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/quotaops.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2010-03-03 09:05:05 -0500
committerJan Kara <jack@suse.cz>2010-03-04 18:20:30 -0500
commit9f7547580263d4a55efe06ce5cfd567f568be6e8 (patch)
tree6f926a075eeed815d0a6680c06f235da0e5ea6d9 /include/linux/quotaops.h
parent257ba15cedf1288f0c96118d7e63947231d27278 (diff)
dquot: cleanup dquot drop routine
Get rid of the drop dquot operation - it is now always called from the filesystem and if a filesystem really needs it's own (which none currently does) it can just call into it's own routine directly. Rename the now static low-level dquot_drop helper to __dquot_drop and vfs_dq_drop to dquot_drop to have a consistent namespace. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'include/linux/quotaops.h')
-rw-r--r--include/linux/quotaops.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/quotaops.h b/include/linux/quotaops.h
index fa27b7218c82..a5ebd1abccd8 100644
--- a/include/linux/quotaops.h
+++ b/include/linux/quotaops.h
@@ -24,7 +24,7 @@ void inode_claim_rsv_space(struct inode *inode, qsize_t number);
24void inode_sub_rsv_space(struct inode *inode, qsize_t number); 24void inode_sub_rsv_space(struct inode *inode, qsize_t number);
25 25
26int dquot_initialize(struct inode *inode, int type); 26int dquot_initialize(struct inode *inode, int type);
27int dquot_drop(struct inode *inode); 27void dquot_drop(struct inode *inode);
28struct dquot *dqget(struct super_block *sb, unsigned int id, int type); 28struct dquot *dqget(struct super_block *sb, unsigned int id, int type);
29void dqput(struct dquot *dquot); 29void dqput(struct dquot *dquot);
30int dquot_scan_active(struct super_block *sb, 30int dquot_scan_active(struct super_block *sb,
@@ -64,7 +64,6 @@ int vfs_set_dqinfo(struct super_block *sb, int type, struct if_dqinfo *ii);
64int vfs_get_dqblk(struct super_block *sb, int type, qid_t id, struct if_dqblk *di); 64int vfs_get_dqblk(struct super_block *sb, int type, qid_t id, struct if_dqblk *di);
65int vfs_set_dqblk(struct super_block *sb, int type, qid_t id, struct if_dqblk *di); 65int vfs_set_dqblk(struct super_block *sb, int type, qid_t id, struct if_dqblk *di);
66 66
67void vfs_dq_drop(struct inode *inode);
68int dquot_transfer(struct inode *inode, struct iattr *iattr); 67int dquot_transfer(struct inode *inode, struct iattr *iattr);
69int vfs_dq_quota_on_remount(struct super_block *sb); 68int vfs_dq_quota_on_remount(struct super_block *sb);
70 69
@@ -210,7 +209,7 @@ static inline void vfs_dq_init(struct inode *inode)
210{ 209{
211} 210}
212 211
213static inline void vfs_dq_drop(struct inode *inode) 212static inline void dquot_drop(struct inode *inode)
214{ 213{
215} 214}
216 215