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>
这个提交包含在:
Jan Kara
2008-11-25 15:31:32 +01:00
提交者 Mark Fasheh
父节点 5cd9d5bb86
当前提交 7d9056ba20
修改 2 个文件,包含 6 行新增2 行删除

查看文件

@@ -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)
{