diff options
-rw-r--r-- | fs/dquot.c | 6 | ||||
-rw-r--r-- | include/linux/quotaops.h | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/fs/dquot.c b/fs/dquot.c index 075dc76904e7..61bfff64e5af 100644 --- a/fs/dquot.c +++ b/fs/dquot.c | |||
@@ -413,10 +413,11 @@ out_dqlock: | |||
413 | return ret; | 413 | return ret; |
414 | } | 414 | } |
415 | 415 | ||
416 | static void dquot_destroy(struct dquot *dquot) | 416 | void dquot_destroy(struct dquot *dquot) |
417 | { | 417 | { |
418 | kmem_cache_free(dquot_cachep, dquot); | 418 | kmem_cache_free(dquot_cachep, dquot); |
419 | } | 419 | } |
420 | EXPORT_SYMBOL(dquot_destroy); | ||
420 | 421 | ||
421 | static inline void do_destroy_dquot(struct dquot *dquot) | 422 | static inline void do_destroy_dquot(struct dquot *dquot) |
422 | { | 423 | { |
@@ -668,10 +669,11 @@ we_slept: | |||
668 | spin_unlock(&dq_list_lock); | 669 | spin_unlock(&dq_list_lock); |
669 | } | 670 | } |
670 | 671 | ||
671 | static struct dquot *dquot_alloc(struct super_block *sb, int type) | 672 | struct dquot *dquot_alloc(struct super_block *sb, int type) |
672 | { | 673 | { |
673 | return kmem_cache_zalloc(dquot_cachep, GFP_NOFS); | 674 | return kmem_cache_zalloc(dquot_cachep, GFP_NOFS); |
674 | } | 675 | } |
676 | EXPORT_SYMBOL(dquot_alloc); | ||
675 | 677 | ||
676 | static struct dquot *get_empty_dquot(struct super_block *sb, int type) | 678 | static struct dquot *get_empty_dquot(struct super_block *sb, int type) |
677 | { | 679 | { |
diff --git a/include/linux/quotaops.h b/include/linux/quotaops.h index f4913948c305..21b781a3350f 100644 --- a/include/linux/quotaops.h +++ b/include/linux/quotaops.h | |||
@@ -31,6 +31,8 @@ int dquot_is_cached(struct super_block *sb, unsigned int id, int type); | |||
31 | int dquot_scan_active(struct super_block *sb, | 31 | int dquot_scan_active(struct super_block *sb, |
32 | int (*fn)(struct dquot *dquot, unsigned long priv), | 32 | int (*fn)(struct dquot *dquot, unsigned long priv), |
33 | unsigned long priv); | 33 | unsigned long priv); |
34 | struct dquot *dquot_alloc(struct super_block *sb, int type); | ||
35 | void dquot_destroy(struct dquot *dquot); | ||
34 | 36 | ||
35 | int dquot_alloc_space(struct inode *inode, qsize_t number, int prealloc); | 37 | int dquot_alloc_space(struct inode *inode, qsize_t number, int prealloc); |
36 | int dquot_alloc_inode(const struct inode *inode, qsize_t number); | 38 | int dquot_alloc_inode(const struct inode *inode, qsize_t number); |