Skip to content

Commit c6bee29

Browse files
committed
btrfs: switch RCU helper versions to btrfs_debug()
The RCU protection is now done in the plain helpers, we can remove the "_in_rcu" and "_rl_in_rcu". Reviewed-by: Daniel Vacek <neelx@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent 03131fa commit c6bee29

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

fs/btrfs/bio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ static void btrfs_submit_dev_bio(struct btrfs_device *dev, struct bio *bio)
433433
ASSERT(btrfs_dev_is_sequential(dev, physical));
434434
bio->bi_iter.bi_sector = zone_start >> SECTOR_SHIFT;
435435
}
436-
btrfs_debug_in_rcu(dev->fs_info,
436+
btrfs_debug(dev->fs_info,
437437
"%s: rw %d 0x%x, sector=%llu, dev=%lu (%s id %llu), size=%u",
438438
__func__, bio_op(bio), bio->bi_opf, bio->bi_iter.bi_sector,
439439
(unsigned long)dev->bdev->bd_dev, btrfs_dev_name(dev),

fs/btrfs/messages.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -77,31 +77,17 @@ void _btrfs_printk(const struct btrfs_fs_info *fs_info, const char *fmt, ...);
7777
#define btrfs_debug(fs_info, fmt, args...) \
7878
_dynamic_func_call_no_desc(fmt, btrfs_printk_in_rcu, \
7979
fs_info, KERN_DEBUG fmt, ##args)
80-
#define btrfs_debug_in_rcu(fs_info, fmt, args...) \
81-
_dynamic_func_call_no_desc(fmt, btrfs_printk_in_rcu, \
82-
fs_info, KERN_DEBUG fmt, ##args)
83-
#define btrfs_debug_rl_in_rcu(fs_info, fmt, args...) \
84-
_dynamic_func_call_no_desc(fmt, btrfs_printk_rl_in_rcu, \
85-
fs_info, KERN_DEBUG fmt, ##args)
8680
#define btrfs_debug_rl(fs_info, fmt, args...) \
8781
_dynamic_func_call_no_desc(fmt, btrfs_printk_rl_in_rcu, \
8882
fs_info, KERN_DEBUG fmt, ##args)
8983
#elif defined(DEBUG)
9084
#define btrfs_debug(fs_info, fmt, args...) \
9185
btrfs_printk_in_rcu(fs_info, KERN_DEBUG fmt, ##args)
92-
#define btrfs_debug_in_rcu(fs_info, fmt, args...) \
93-
btrfs_printk_in_rcu(fs_info, KERN_DEBUG fmt, ##args)
94-
#define btrfs_debug_rl_in_rcu(fs_info, fmt, args...) \
95-
btrfs_printk_rl_in_rcu(fs_info, KERN_DEBUG fmt, ##args)
9686
#define btrfs_debug_rl(fs_info, fmt, args...) \
9787
btrfs_printk_rl_in_rcu(fs_info, KERN_DEBUG fmt, ##args)
9888
#else
9989
#define btrfs_debug(fs_info, fmt, args...) \
10090
btrfs_no_printk_in_rcu(fs_info, KERN_DEBUG fmt, ##args)
101-
#define btrfs_debug_in_rcu(fs_info, fmt, args...) \
102-
btrfs_no_printk_in_rcu(fs_info, KERN_DEBUG fmt, ##args)
103-
#define btrfs_debug_rl_in_rcu(fs_info, fmt, args...) \
104-
btrfs_no_printk_in_rcu(fs_info, KERN_DEBUG fmt, ##args)
10591
#define btrfs_debug_rl(fs_info, fmt, args...) \
10692
btrfs_no_printk_in_rcu(fs_info, KERN_DEBUG fmt, ##args)
10793
#endif

0 commit comments

Comments
 (0)