diff options
author | Jan Kara <jack@suse.cz> | 2008-07-25 01:46:52 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-25 10:53:35 -0700 |
commit | 03b063436ca1076301de58d9d628f610ab5404ad (patch) | |
tree | c0c21837706d6c462cef3183f5e514405d1af993 /include/linux/quota.h | |
parent | 74abb9890dafb12a50dc140de215ed477beb1b88 (diff) | |
download | linux-3.10-03b063436ca1076301de58d9d628f610ab5404ad.tar.gz linux-3.10-03b063436ca1076301de58d9d628f610ab5404ad.tar.bz2 linux-3.10-03b063436ca1076301de58d9d628f610ab5404ad.zip |
quota: convert macros to inline functions
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, 4 insertions, 1 deletions
diff --git a/include/linux/quota.h b/include/linux/quota.h index f9983ea0ff8..4e004fef813 100644 --- a/include/linux/quota.h +++ b/include/linux/quota.h @@ -223,7 +223,10 @@ struct super_block; #define DQF_INFO_DIRTY (1 << DQF_INFO_DIRTY_B) /* Is info dirty? */ extern void mark_info_dirty(struct super_block *sb, int type); -#define info_dirty(info) test_bit(DQF_INFO_DIRTY_B, &(info)->dqi_flags) +static inline int info_dirty(struct mem_dqinfo *info) +{ + return test_bit(DQF_INFO_DIRTY_B, &info->dqi_flags); +} struct dqstats { int lookups; |