diff options
| author | Josef Bacik <[email protected]> | 2012-08-02 14:23:59 +0000 |
|---|---|---|
| committer | Chris Mason <[email protected]> | 2012-08-28 20:53:29 +0000 |
| commit | 99f5944b8477914406173b47b4f261356286730b (patch) | |
| tree | a2b3037ad77b3841467d9e7ff4b0dde3ea2eb380 /lib/dynamic_debug.c | |
| parent | Btrfs: do not use missing devices when showing devname (diff) | |
| download | kernel-99f5944b8477914406173b47b4f261356286730b.tar.gz kernel-99f5944b8477914406173b47b4f261356286730b.zip | |
Btrfs: do not strdup non existent strings
When we close devices we add back empty devices for some reason that escapes
me. In the case of a missing dev we don't allocate an rcu_string for it's
name, so check to see if the device has a name and if it doesn't don't
bother strdup()'ing it. Thanks,
Signed-off-by: Josef Bacik <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions
