diff options
| author | David Sterba <dsterba@suse.com> | 2025-06-09 19:09:22 +0200 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2025-07-21 23:56:38 +0200 |
| commit | ee3af49a0519454d7130bcd3882055bc0155bfaa (patch) | |
| tree | ab049eb593162c083c2b6c8068b72b2bc38fe4c0 /fs/btrfs/rcu-string.h | |
| parent | d1d1c854270ae21c2c770ac42591558b6511578e (diff) | |
btrfs: remove unused rcu-string printk helpers
The RCU-string API has never taken off and we don't use the printk
helpers provided as we do the protection in our helpers. Remove the "in
RCU" wrappers.
Reviewed-by: Daniel Vacek <neelx@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/rcu-string.h')
| -rw-r--r-- | fs/btrfs/rcu-string.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/fs/btrfs/rcu-string.h b/fs/btrfs/rcu-string.h index 7f35cf75b50f..70b1e19b50e6 100644 --- a/fs/btrfs/rcu-string.h +++ b/fs/btrfs/rcu-string.h @@ -32,18 +32,6 @@ static inline struct rcu_string *rcu_string_strdup(const char *src, gfp_t mask) return ret; } -#define printk_in_rcu(fmt, ...) do { \ - rcu_read_lock(); \ - printk(fmt, __VA_ARGS__); \ - rcu_read_unlock(); \ -} while (0) - -#define printk_ratelimited_in_rcu(fmt, ...) do { \ - rcu_read_lock(); \ - printk_ratelimited(fmt, __VA_ARGS__); \ - rcu_read_unlock(); \ -} while (0) - #define rcu_str_deref(rcu_str) ({ \ struct rcu_string *__str = rcu_dereference(rcu_str); \ __str->str; \ |