OSDN Git Service

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)
commit0b1c6ccadee4ea4adb98799f3430fc72e57a187f
tree6d2d6c37a12ef9a14b1266007fc54007ff25e22e
parent41be1f3b40b87de33cd2e7463dce88596dbdccc4
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