btrfs: open code rcu_string_free() and remove it
authorDavid Sterba <dsterba@suse.com>
Mon, 9 Jun 2025 17:09:21 +0000 (19:09 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 21:56:38 +0000 (23:56 +0200)
commitd1d1c854270ae21c2c770ac42591558b6511578e
treee6cc939ab13b35b2eecc58b315863c0a31fa5a76
parent694ce5e143d67267ad26b04463e790a597500b00
btrfs: open code rcu_string_free() and remove it

The helper is trivial and we can simply use kfree_rcu() if needed. In
our case it's just one place where we rename a device in
device_list_add() and the old name can still be used until the end of
the RCU grace period. The other case is freeing a device and there
nothing should reach the device, so we can use plain kfree().

Reviewed-by: Daniel Vacek <neelx@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/rcu-string.h
fs/btrfs/volumes.c