diff options
author | Christoph Hellwig <hch@infradead.org> | 2010-05-19 07:16:44 -0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2010-05-24 08:10:17 -0400 |
commit | 123e9caf1e85008ab7eb5f6cd58c44f9a5d73b2b (patch) | |
tree | a7a49a9aabb2136e8d19a3d86096bb525a16e0b9 /include/linux/quotaops.h | |
parent | 307ae18a56e5b706056a2050d52e8cc01b5171c0 (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 'include/linux/quotaops.h')
-rw-r--r-- | include/linux/quotaops.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/linux/quotaops.h b/include/linux/quotaops.h index a6592ddc349f..84b8dbf59c03 100644 --- a/include/linux/quotaops.h +++ b/include/linux/quotaops.h | |||
@@ -153,9 +153,6 @@ static inline unsigned sb_any_quota_active(struct super_block *sb) | |||
153 | extern const struct dquot_operations dquot_operations; | 153 | extern const struct dquot_operations dquot_operations; |
154 | extern const struct quotactl_ops vfs_quotactl_ops; | 154 | extern const struct quotactl_ops vfs_quotactl_ops; |
155 | 155 | ||
156 | #define sb_dquot_ops (&dquot_operations) | ||
157 | #define sb_quotactl_ops (&vfs_quotactl_ops) | ||
158 | |||
159 | #else | 156 | #else |
160 | 157 | ||
161 | static inline int sb_has_quota_usage_enabled(struct super_block *sb, int type) | 158 | static inline int sb_has_quota_usage_enabled(struct super_block *sb, int type) |
@@ -199,12 +196,6 @@ static inline int sb_any_quota_active(struct super_block *sb) | |||
199 | return 0; | 196 | return 0; |
200 | } | 197 | } |
201 | 198 | ||
202 | /* | ||
203 | * NO-OP when quota not configured. | ||
204 | */ | ||
205 | #define sb_dquot_ops (NULL) | ||
206 | #define sb_quotactl_ops (NULL) | ||
207 | |||
208 | static inline void dquot_initialize(struct inode *inode) | 199 | static inline void dquot_initialize(struct inode *inode) |
209 | { | 200 | { |
210 | } | 201 | } |