Btrfs: do not mark ems as prealloc if we are writing to them
authorJosef Bacik <jbacik@fusionio.com>
Mon, 3 Dec 2012 15:58:15 +0000 (10:58 -0500)
committerChris Mason <chris.mason@fusionio.com>
Mon, 17 Dec 2012 01:46:23 +0000 (20:46 -0500)
commitb11e234d21e73df94099e473a080bca502b9a496
treeeb931368e5b4111b8eb95fff5921d78220c590ff
parentb493968096944a11422c4d80fb87af537ca1cac7
Btrfs: do not mark ems as prealloc if we are writing to them

We are going to use EM's to log extents in the future, so we need to not
mark them as prealloc if they aren't actually prealloc extents.  Instead
mark them with FILLING so we know to ammend mod_start/mod_len and that way
we don't confuse the extent logging code.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/extent_map.c
fs/btrfs/extent_map.h
fs/btrfs/inode.c