commit | e6138876ad8327250d77291b3262fee356267211 | [log] [tgz] |
---|---|---|
author | Josef Bacik <jbacik@fusionio.com> | Thu Sep 27 17:07:30 2012 -0400 |
committer | Chris Mason <chris.mason@fusionio.com> | Tue Oct 09 09:15:41 2012 -0400 |
tree | ffc3fe0a05e0fd7e55b92e3ef8bad42d3c73d68c | |
parent | ce1953325662fa597197ce728e4195582fc21c8d [diff] |
Btrfs: cache extent state when writing out dirty metadata pages Everytime we write out dirty pages we search for an offset in the tree, convert the bits in the state, and then when we wait we search for the offset again and clear the bits. So for every dirty range in the io tree we are doing 4 rb searches, which is suboptimal. With this patch we are only doing 2 searches for every cycle (modulo weird things happening). Thanks, Signed-off-by: Josef Bacik <jbacik@fusionio.com>