diff options
author | Christoph Hellwig <hch@infradead.org> | 2010-03-03 09:05:05 -0500 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2010-03-04 18:20:30 -0500 |
commit | 9f7547580263d4a55efe06ce5cfd567f568be6e8 (patch) | |
tree | 6f926a075eeed815d0a6680c06f235da0e5ea6d9 /include/linux/quotaops.h | |
parent | 257ba15cedf1288f0c96118d7e63947231d27278 (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.h | 5 |
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); | |||
24 | void inode_sub_rsv_space(struct inode *inode, qsize_t number); | 24 | void inode_sub_rsv_space(struct inode *inode, qsize_t number); |
25 | 25 | ||
26 | int dquot_initialize(struct inode *inode, int type); | 26 | int dquot_initialize(struct inode *inode, int type); |
27 | int dquot_drop(struct inode *inode); | 27 | void dquot_drop(struct inode *inode); |
28 | struct dquot *dqget(struct super_block *sb, unsigned int id, int type); | 28 | struct dquot *dqget(struct super_block *sb, unsigned int id, int type); |
29 | void dqput(struct dquot *dquot); | 29 | void dqput(struct dquot *dquot); |
30 | int dquot_scan_active(struct super_block *sb, | 30 | int 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); | |||
64 | int vfs_get_dqblk(struct super_block *sb, int type, qid_t id, struct if_dqblk *di); | 64 | int vfs_get_dqblk(struct super_block *sb, int type, qid_t id, struct if_dqblk *di); |
65 | int vfs_set_dqblk(struct super_block *sb, int type, qid_t id, struct if_dqblk *di); | 65 | int vfs_set_dqblk(struct super_block *sb, int type, qid_t id, struct if_dqblk *di); |
66 | 66 | ||
67 | void vfs_dq_drop(struct inode *inode); | ||
68 | int dquot_transfer(struct inode *inode, struct iattr *iattr); | 67 | int dquot_transfer(struct inode *inode, struct iattr *iattr); |
69 | int vfs_dq_quota_on_remount(struct super_block *sb); | 68 | int 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 | ||
213 | static inline void vfs_dq_drop(struct inode *inode) | 212 | static inline void dquot_drop(struct inode *inode) |
214 | { | 213 | { |
215 | } | 214 | } |
216 | 215 | ||