]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: cache extent states in defrag code path
authorFilipe Manana <fdmanana@gmail.com>
Tue, 11 Mar 2014 13:56:15 +0000 (13:56 +0000)
committerChris Mason <clm@fb.com>
Fri, 21 Mar 2014 00:15:27 +0000 (17:15 -0700)
commite3d779a2f90665361ddb4a631c18befdc3e5b0af
tree24c94bc9e5d7aa3394a35d767f78f245e2922a58
parent19de015f18efed71b97786ecfbe78d85cefc911a
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>
fs/btrfs/ioctl.c