Btrfs: Update nodatacow mode to support cloned single files and resizing
authorChris Mason <chris.mason@oracle.com>
Thu, 8 May 2008 18:11:56 +0000 (14:11 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:02 +0000 (11:04 -0400)
commita68d5933a0e409592860229b35230c8e87155472
treef58e963b03034935429b42be735ee59cd06110e1
parentbf4ef67924d87b0addb32f084e83a9283496350e
Btrfs: Update nodatacow mode to support cloned single files and resizing

Before, nodatacow only checked to make sure multiple roots didn't have
references on a single extent.  This check makes sure that multiple
inodes don't have references.

nodatacow needed an extra check to see if the block group was currently
readonly.  This way cows forced by the chunk relocation code are honored.

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