summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/struct-funcs.c
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@gmail.com>2014-05-30 17:56:24 +0100
committerChris Mason <clm@fb.com>2014-06-09 17:21:04 -0700
commitff5df9b884268d319d041934c6059c09733a4be2 (patch)
treec942369f927e23f4e62dcddeb8afee5fecf382ce /fs/btrfs/struct-funcs.c
parent2c463823cb897a8e1758518c911646f5605cdd82 (diff)
Btrfs: ioctl, don't re-lock extent range when not necessary
In ioctl.c:lock_extent_range(), after locking our target range, the ordered extent that btrfs_lookup_first_ordered_extent() returns us may not overlap our target range at all. In this case we would just unlock our target range, wait for any new ordered extents that overlap the range to complete, lock again the range and repeat all these steps until we don't get any ordered extent and the delalloc flag isn't set in the io tree for our target range. Therefore just stop if we get an ordered extent that doesn't overlap our target range and the dealalloc flag isn't set for the range in the inode's io tree. Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/struct-funcs.c')
0 files changed, 0 insertions, 0 deletions