aboutsummaryrefslogtreecommitdiffstats
path: root/fs/quota/dquot.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2010-05-19 07:16:44 -0400
committerJan Kara <jack@suse.cz>2010-05-24 08:10:17 -0400
commit123e9caf1e85008ab7eb5f6cd58c44f9a5d73b2b (patch)
treea7a49a9aabb2136e8d19a3d86096bb525a16e0b9 /fs/quota/dquot.c
parent307ae18a56e5b706056a2050d52e8cc01b5171c0 (diff)
quota: explicitly set ->dq_op and ->s_qcop
Only set the quota operation vectors if the filesystem actually supports quota instead of doing it for all filesystems in alloc_super(). [Jan Kara: Export dquot_operations and vfs_quotactl_ops] Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/quota/dquot.c')
-rw-r--r--fs/quota/dquot.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c
index b84422657f6d..9ba526e3f719 100644
--- a/fs/quota/dquot.c
+++ b/fs/quota/dquot.c
@@ -1847,6 +1847,7 @@ const struct dquot_operations dquot_operations = {
1847 .alloc_dquot = dquot_alloc, 1847 .alloc_dquot = dquot_alloc,
1848 .destroy_dquot = dquot_destroy, 1848 .destroy_dquot = dquot_destroy,
1849}; 1849};
1850EXPORT_SYMBOL(dquot_operations);
1850 1851
1851/* 1852/*
1852 * Generic helper for ->open on filesystems supporting disk quotas. 1853 * Generic helper for ->open on filesystems supporting disk quotas.
@@ -2491,7 +2492,7 @@ const struct quotactl_ops vfs_quotactl_ops = {
2491 .get_dqblk = vfs_get_dqblk, 2492 .get_dqblk = vfs_get_dqblk,
2492 .set_dqblk = vfs_set_dqblk 2493 .set_dqblk = vfs_set_dqblk
2493}; 2494};
2494 2495EXPORT_SYMBOL(vfs_quotactl_ops);
2495 2496
2496static int do_proc_dqstats(struct ctl_table *table, int write, 2497static int do_proc_dqstats(struct ctl_table *table, int write,
2497 void __user *buffer, size_t *lenp, loff_t *ppos) 2498 void __user *buffer, size_t *lenp, loff_t *ppos)