]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: false BUG_ON when degraded
authorArne Jansen <sensille@gmx.net>
Mon, 30 May 2011 08:36:16 +0000 (08:36 +0000)
committerChris Mason <chris.mason@oracle.com>
Sat, 4 Jun 2011 12:03:44 +0000 (08:03 -0400)
commit73023b2b4789c4e1b8646d9ade1b2171c107b799
tree224a59dcd31fbbe2b23ac85d3d4906bbf7327b78
parent4dc96567a3f1b40d4763abfee7449d54ae9a0be0
btrfs: false BUG_ON when degraded

In degraded mode the struct btrfs_device of missing devs don't have
device->name set. A kstrdup of NULL correctly returns NULL. Don't
BUG in this case.

Signed-off-by: Arne Jansen <sensille@gmx.net>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/volumes.c