diff options
author | Filipe Manana <fdmanana@gmail.com> | 2014-03-11 13:56:15 +0000 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-03-20 17:15:27 -0700 |
commit | 308d9800b2c4f1fb344dbf055912d3140438bac0 (patch) | |
tree | 24c94bc9e5d7aa3394a35d767f78f245e2922a58 /fs/btrfs/async-thread.c | |
parent | 3bbb24b20a8800158c33eca8564f432dd14d0bf3 (diff) | |
download | linux-stable-308d9800b2c4f1fb344dbf055912d3140438bac0.tar.gz linux-stable-308d9800b2c4f1fb344dbf055912d3140438bac0.tar.bz2 linux-stable-308d9800b2c4f1fb344dbf055912d3140438bac0.zip |
Btrfs: cache extent states in defrag code path
When locking file ranges in the inode's io_tree, cache the first
extent state that belongs to the target range, so that when unlocking
the range we don't need to search in the io_tree again, reducing cpu
time and making and therefore holding the io_tree's lock for a shorter
period.
Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/async-thread.c')
0 files changed, 0 insertions, 0 deletions