From e4f18fb21ad1aa2adc9c960aa72bb3a1b57fa022 Mon Sep 17 00:00:00 2001 From: Namjae Jeon Date: Thu, 31 May 2012 16:26:13 -0700 Subject: [PATCH] --- yaml --- r: 309727 b: refs/heads/master c: b742c341539fc8b8386ef72f0e95758f39fbb4c8 h: refs/heads/master i: 309725: a8d02e71a2f565be8ddc9dc84c0e1a853d3c3104 309723: bc8c33c2b75fcb9da81ab747f2e7275790271e0e 309719: f80a8ae48c9ad7efe0ca77352e0f1497edf7cf7a 309711: 2f1a8d38e05916ca19434caece4b71bb773f5263 309695: 9291771c28294bf03bdf239257c68882cf7429ec v: v3 --- [refs] | 2 +- trunk/fs/fat/fat.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 271b32d929b2..762e1a9c262b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 78491189ddb6d84d4a4abae992ed891a236d0263 +refs/heads/master: b742c341539fc8b8386ef72f0e95758f39fbb4c8 diff --git a/trunk/fs/fat/fat.h b/trunk/fs/fat/fat.h index 951d12b61b58..fc35c5c69136 100644 --- a/trunk/fs/fat/fat.h +++ b/trunk/fs/fat/fat.h @@ -335,6 +335,11 @@ void __fat_fs_error(struct super_block *sb, int report, const char *fmt, ...); __fat_fs_error(sb, __ratelimit(&MSDOS_SB(sb)->ratelimit), fmt , ## args) __printf(3, 4) __cold void fat_msg(struct super_block *sb, const char *level, const char *fmt, ...); +#define fat_msg_ratelimit(sb, level, fmt, args...) \ + do { \ + if (__ratelimit(&MSDOS_SB(sb)->ratelimit)) \ + fat_msg(sb, level, fmt, ## args); \ + } while (0) extern int fat_clusters_flush(struct super_block *sb); extern int fat_chain_add(struct inode *inode, int new_dclus, int nr_cluster); extern void fat_time_fat2unix(struct msdos_sb_info *sbi, struct timespec *ts,