OSDN Git Service

btrfs: introduce free_device helper
authorDavid Sterba <dsterba@suse.com>
Mon, 30 Oct 2017 17:10:25 +0000 (18:10 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:11 +0000 (16:08 +0100)
commit48dae9cf3f95acc4bd51b2324e10f8fd5c302be8
tree596093a7320811cf173b6eb417c3c8c482ad8a04
parentf06c5965abb79573a69874e2731581c7c336819f
btrfs: introduce free_device helper

A helper to free a device and all it's dynamically allocated members,
like the rcu_string name or flush_bio. This is going to replace all
open coded places.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c