commit | 99f5944b8477914406173b47b4f261356286730b | [log] [tgz] |
---|---|---|
author | Josef Bacik <jbacik@fusionio.com> | Thu Aug 02 10:23:59 2012 -0400 |
committer | Chris Mason <chris.mason@oracle.com> | Tue Aug 28 16:53:29 2012 -0400 |
tree | a2b3037ad77b3841467d9e7ff4b0dde3ea2eb380 | |
parent | aa9ddcd4b5557102fa25695c11904f249b4dec49 [diff] |
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 <jbacik@fusionio.com>