diff options
author | Jan Kara <jack@suse.cz> | 2008-11-25 17:31:32 +0300 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2009-01-05 19:40:25 +0300 |
commit | 7d9056ba20ebed6e3937a2e23183f6117919cb00 (patch) | |
tree | 3aefa0f187630fdbdefcec9e726155f2678cd1ab /fs/dquot.c | |
parent | 5cd9d5bb86daf632a40f90e2321ea9379e42f073 (diff) | |
download | linux-7d9056ba20ebed6e3937a2e23183f6117919cb00.tar.xz |
quota: Export dquot_alloc() and dquot_destroy() functions
These are default functions for creating and destroying quota structures
and they should be used from filesystems.
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/dquot.c')
-rw-r--r-- | fs/dquot.c | 6 |
1 files changed, 4 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: return ret; } -static void dquot_destroy(struct dquot *dquot) +void dquot_destroy(struct dquot *dquot) { kmem_cache_free(dquot_cachep, dquot); } +EXPORT_SYMBOL(dquot_destroy); static inline void do_destroy_dquot(struct dquot *dquot) { @@ -668,10 +669,11 @@ we_slept: spin_unlock(&dq_list_lock); } -static struct dquot *dquot_alloc(struct super_block *sb, int type) +struct dquot *dquot_alloc(struct super_block *sb, int type) { return kmem_cache_zalloc(dquot_cachep, GFP_NOFS); } +EXPORT_SYMBOL(dquot_alloc); static struct dquot *get_empty_dquot(struct super_block *sb, int type) { |