]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc3f79e4c13dcb47e06ab7d97bc74087c83a91fd9
treeeb931368e5b4111b8eb95fff5921d78220c590ff
parent34a6cfa13f9d8fbaf76b5466c58ef3c0a5d54896
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