aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/async-thread.c
diff options
context:
space:
mode:
authorChris Mason <[email protected]>2009-08-05 16:57:59 +0000
committerChris Mason <[email protected]>2009-09-11 17:31:03 +0000
commit40431d6c1288793a682fc6f5e5b5c9d5cac34608 (patch)
treea840fb38459476ff0aecda8369f965c344a25562 /fs/btrfs/async-thread.c
parentBtrfs: Allow worker threads to exit when idle (diff)
downloadkernel-40431d6c1288793a682fc6f5e5b5c9d5cac34608.tar.gz
kernel-40431d6c1288793a682fc6f5e5b5c9d5cac34608.zip
Btrfs: optimize set extent bit
The Btrfs set_extent_bit call currently searches the rbtree every time it needs to find more extent_state objects to fill the requested operation. This adds a simple test with rb_next to see if the next object in the tree was adjacent to the one we just found. If so, we skip the search and just use the next object. Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'fs/btrfs/async-thread.c')
0 files changed, 0 insertions, 0 deletions