]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: use tokens where we can in the tree log
authorJosef Bacik <jbacik@fusionio.com>
Tue, 23 Oct 2012 20:03:44 +0000 (16:03 -0400)
committerChris Mason <chris.mason@fusionio.com>
Mon, 17 Dec 2012 01:46:26 +0000 (20:46 -0500)
commitf2b50474245f554208e61999580538f59e343473
tree6d2d6c37a12ef9a14b1266007fc54007ff25e22e
parentd05258f2f7f66be96f041e8d47a0040c59b48ca5
Btrfs: use tokens where we can in the tree log

If we are syncing over and over the overhead of doing all those maps in
fill_inode_item and log_changed_extents really starts to hurt, so use map
tokens so we can avoid all the extra mapping.  Since the token maps from our
offset to the end of the page make sure to set the first thing in the item
first so we really only do one map.  Thanks,

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