Btrfs: Add support for online device removal
authorChris Mason <chris.mason@oracle.com>
Wed, 7 May 2008 15:43:44 +0000 (11:43 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:02 +0000 (11:04 -0400)
commita061fc8da7b990faa41ca503e66faef3ecdeead0
tree0d3b5b6e4d2164d507d9a16d5b38d373592a5c8f
parent5d9cd9ecbf40b8bd5045a3c2f1feb35db6a12266
Btrfs: Add support for online device removal

This required a few structural changes to the code that manages bdev pointers:

The VFS super block now gets an anon-bdev instead of a pointer to the
lowest bdev.  This allows us to avoid swapping the super block bdev pointer
around at run time.

The code to read in the super block no longer goes through the extent
buffer interface.  Things got ugly keeping the mapping constant.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/extent-tree.c
fs/btrfs/inode.c
fs/btrfs/super.c
fs/btrfs/transaction.c
fs/btrfs/volumes.c
fs/btrfs/volumes.h