|
@@ -3390,9 +3390,9 @@ do { \
|
|
|
#define btrfs_debug(fs_info, fmt, args...) \
|
|
|
btrfs_no_printk(fs_info, KERN_DEBUG fmt, ##args)
|
|
|
#define btrfs_debug_in_rcu(fs_info, fmt, args...) \
|
|
|
- btrfs_no_printk(fs_info, KERN_DEBUG fmt, ##args)
|
|
|
+ btrfs_no_printk_in_rcu(fs_info, KERN_DEBUG fmt, ##args)
|
|
|
#define btrfs_debug_rl_in_rcu(fs_info, fmt, args...) \
|
|
|
- btrfs_no_printk(fs_info, KERN_DEBUG fmt, ##args)
|
|
|
+ btrfs_no_printk_in_rcu(fs_info, KERN_DEBUG fmt, ##args)
|
|
|
#define btrfs_debug_rl(fs_info, fmt, args...) \
|
|
|
btrfs_no_printk(fs_info, KERN_DEBUG fmt, ##args)
|
|
|
#endif
|
|
@@ -3404,6 +3404,13 @@ do { \
|
|
|
rcu_read_unlock(); \
|
|
|
} while (0)
|
|
|
|
|
|
+#define btrfs_no_printk_in_rcu(fs_info, fmt, args...) \
|
|
|
+do { \
|
|
|
+ rcu_read_lock(); \
|
|
|
+ btrfs_no_printk(fs_info, fmt, ##args); \
|
|
|
+ rcu_read_unlock(); \
|
|
|
+} while (0)
|
|
|
+
|
|
|
#define btrfs_printk_ratelimited(fs_info, fmt, args...) \
|
|
|
do { \
|
|
|
static DEFINE_RATELIMIT_STATE(_rs, \
|