]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: move some common code into a subfunction
authorStefan Behrens <sbehrens@giantdisaster.de>
Mon, 12 Nov 2012 13:03:45 +0000 (14:03 +0100)
committerJosef Bacik <jbacik@fusionio.com>
Wed, 12 Dec 2012 22:15:33 +0000 (17:15 -0500)
commit2b23e467b9e6440ce7031edaf46107f46ab09483
tree674adcea3790a7c5c047d43d81e71cdcb34b9738
parent6306bfd1fbb7d76a30e61a6e902f2d7d817f1570
Btrfs: move some common code into a subfunction

Some code to open block devices, to read the superblock and to
handle errors was repeated multiple times in 3 places, and the
following patch makes use of it as well. This code is now moved
into a subfunction.

Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/volumes.c