Btrfs: Protect the readonly flag of block group
authorWuBo <wu.bo@cn.fujitsu.com>
Tue, 26 Jul 2011 03:30:11 +0000 (03:30 +0000)
committerChris Mason <chris.mason@oracle.com>
Mon, 1 Aug 2011 18:30:43 +0000 (14:30 -0400)
commit61cfea9bb84d41b09e59822c33b3eb27acc48358
tree6c20e098a3be7aad77419dc273bfd670dc470f3a
parent1bf85046e493c88be1c1bad9084428373089f618
Btrfs: Protect the readonly flag of block group

The access for ro in btrfs_block_group_cache should be protected
because of the racy lock in relocation.

Signed-off-by: Wu Bo <wu.bo@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent-tree.c