Btrfs: online shrinking fixes
authorChris Mason <chris.mason@oracle.com>
Tue, 8 Jan 2008 20:46:31 +0000 (15:46 -0500)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:03:59 +0000 (11:03 -0400)
commitc31f8830f0dfd31e7e196b85ca1b39aef8b77d57
tree2ee8038af3d28460dd9004ab69d48d301c0a76b8
parentb0331a4c4c339ba7786472b137d6ece9e7f810ec
Btrfs: online shrinking fixes

While shrinking the FS, the allocation functions need to make sure
they don't try to allocate bytes past the end of the FS.

nodatacow needed an extra check to force cows when the existing extents are
past the end of the FS.

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