diff options
-rw-r--r-- | fs/btrfs/ctree.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 9e8fd5ecef55..cb0ae90649c0 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -3244,6 +3244,12 @@ int btrfs_sync_fs(struct super_block *sb, int wait); | |||
3244 | #ifdef CONFIG_PRINTK | 3244 | #ifdef CONFIG_PRINTK |
3245 | __printf(2, 3) | 3245 | __printf(2, 3) |
3246 | void btrfs_printk(const struct btrfs_fs_info *fs_info, const char *fmt, ...); | 3246 | void btrfs_printk(const struct btrfs_fs_info *fs_info, const char *fmt, ...); |
3247 | __printf(2, 3) | ||
3248 | static inline int btrfs_no_printk(const struct btrfs_fs_info *fs_info, | ||
3249 | const char *fmt, ...) | ||
3250 | { | ||
3251 | return 0; | ||
3252 | } | ||
3247 | #else | 3253 | #else |
3248 | static inline __printf(2, 3) | 3254 | static inline __printf(2, 3) |
3249 | void btrfs_printk(const struct btrfs_fs_info *fs_info, const char *fmt, ...) | 3255 | void btrfs_printk(const struct btrfs_fs_info *fs_info, const char *fmt, ...) |
@@ -3358,13 +3364,13 @@ do { \ | |||
3358 | btrfs_printk_ratelimited(fs_info, KERN_DEBUG fmt, ##args) | 3364 | btrfs_printk_ratelimited(fs_info, KERN_DEBUG fmt, ##args) |
3359 | #else | 3365 | #else |
3360 | #define btrfs_debug(fs_info, fmt, args...) \ | 3366 | #define btrfs_debug(fs_info, fmt, args...) \ |
3361 | no_printk(KERN_DEBUG fmt, ##args) | 3367 | btrfs_no_printk(fs_info, KERN_DEBUG fmt, ##args) |
3362 | #define btrfs_debug_in_rcu(fs_info, fmt, args...) \ | 3368 | #define btrfs_debug_in_rcu(fs_info, fmt, args...) \ |
3363 | no_printk(KERN_DEBUG fmt, ##args) | 3369 | btrfs_no_printk(fs_info, KERN_DEBUG fmt, ##args) |
3364 | #define btrfs_debug_rl_in_rcu(fs_info, fmt, args...) \ | 3370 | #define btrfs_debug_rl_in_rcu(fs_info, fmt, args...) \ |
3365 | no_printk(KERN_DEBUG fmt, ##args) | 3371 | btrfs_no_printk(fs_info, KERN_DEBUG fmt, ##args) |
3366 | #define btrfs_debug_rl(fs_info, fmt, args...) \ | 3372 | #define btrfs_debug_rl(fs_info, fmt, args...) \ |
3367 | no_printk(KERN_DEBUG fmt, ##args) | 3373 | btrfs_no_printk(fs_info, KERN_DEBUG fmt, ##args) |
3368 | #endif | 3374 | #endif |
3369 | 3375 | ||
3370 | #define btrfs_printk_in_rcu(fs_info, fmt, args...) \ | 3376 | #define btrfs_printk_in_rcu(fs_info, fmt, args...) \ |