diff options
author | Jan Kara <jack@suse.cz> | 2008-07-25 04:46:50 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-25 13:53:35 -0400 |
commit | 02a55ca87185e114e5d298a8d00608501dbabf67 (patch) | |
tree | 958b60f8fb2936d7207146ff99be431c2c17edc5 /include/linux/quota.h | |
parent | b85f4b87a511bea86dac68c4f0fabaee2cac6c4c (diff) |
quota: cleanup loop in sync_dquots()
Make loop in sync_dquots() checking whether there's something to write
more readable, remove useless variable and macro info_any_dirty() which
is used only in this place.
Signed-off-by: Jan Kara <jack@suse.cz>
Cc: "Vegard Nossum" <vegard.nossum@gmail.com>
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 | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/quota.h b/include/linux/quota.h index dcddfb200947..6f1d97ddf828 100644 --- a/include/linux/quota.h +++ b/include/linux/quota.h | |||
@@ -224,8 +224,6 @@ struct super_block; | |||
224 | 224 | ||
225 | extern void mark_info_dirty(struct super_block *sb, int type); | 225 | extern void mark_info_dirty(struct super_block *sb, int type); |
226 | #define info_dirty(info) test_bit(DQF_INFO_DIRTY_B, &(info)->dqi_flags) | 226 | #define info_dirty(info) test_bit(DQF_INFO_DIRTY_B, &(info)->dqi_flags) |
227 | #define info_any_dquot_dirty(info) (!list_empty(&(info)->dqi_dirty_list)) | ||
228 | #define info_any_dirty(info) (info_dirty(info) || info_any_dquot_dirty(info)) | ||
229 | 227 | ||
230 | #define sb_dqopt(sb) (&(sb)->s_dquot) | 228 | #define sb_dqopt(sb) (&(sb)->s_dquot) |
231 | #define sb_dqinfo(sb, type) (sb_dqopt(sb)->info+(type)) | 229 | #define sb_dqinfo(sb, type) (sb_dqopt(sb)->info+(type)) |