diff options
author | Jan Kara <jack@suse.cz> | 2008-04-28 05:14:32 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 11:58:33 -0400 |
commit | 03f6e92bdd467aed9d7571a571868563ae6ad288 (patch) | |
tree | b10ba6373ffeb0d929ec9004faafcc0ac64103c0 /include/linux/quota.h | |
parent | 8794b5b246cf6f67baf57bd9db386e79ca5cac33 (diff) |
quota: various style cleanups
Cleanups in quota code:
Change __inline__ to inline.
Change some macros to inline functions.
Remove vfs_quota_off_mount() macro.
DQUOT_OFF() should be (0) is CONFIG_QUOTA is disabled.
Move declaration of mark_dquot_dirty and dirty_dquot from quota.h to dquot.c
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/quota.h')
-rw-r--r-- | include/linux/quota.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/quota.h b/include/linux/quota.h index 326cb80e3867..48556b039b1c 100644 --- a/include/linux/quota.h +++ b/include/linux/quota.h | |||
@@ -331,11 +331,6 @@ struct quota_info { | |||
331 | struct quota_format_ops *ops[MAXQUOTAS]; /* Operations for each type */ | 331 | struct quota_format_ops *ops[MAXQUOTAS]; /* Operations for each type */ |
332 | }; | 332 | }; |
333 | 333 | ||
334 | /* Inline would be better but we need to dereference super_block which is not defined yet */ | ||
335 | int mark_dquot_dirty(struct dquot *dquot); | ||
336 | |||
337 | #define dquot_dirty(dquot) test_bit(DQ_MOD_B, &(dquot)->dq_flags) | ||
338 | |||
339 | #define sb_has_quota_enabled(sb, type) ((type)==USRQUOTA ? \ | 334 | #define sb_has_quota_enabled(sb, type) ((type)==USRQUOTA ? \ |
340 | (sb_dqopt(sb)->flags & DQUOT_USR_ENABLED) : (sb_dqopt(sb)->flags & DQUOT_GRP_ENABLED)) | 335 | (sb_dqopt(sb)->flags & DQUOT_USR_ENABLED) : (sb_dqopt(sb)->flags & DQUOT_GRP_ENABLED)) |
341 | 336 | ||