summaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2011-04-16 12:55:39 +0200
committerChris Mason <chris.mason@oracle.com>2011-04-16 12:55:39 +0200
commit0d399205edf3a4c290e76ebb36e541593af4a1b4 (patch)
tree980af1dc3d803727d658aaa7b8565e06009e85e3 /fs/btrfs
parentBtrfs: don't force chunk allocation in find_free_extent (diff)
downloadlinux-0d399205edf3a4c290e76ebb36e541593af4a1b4.tar.xz
linux-0d399205edf3a4c290e76ebb36e541593af4a1b4.zip
Btrfs end_bio_extent_readpage should look for locked bits
A recent commit caches the extent state in end_bio_extent_readpage, but the search it does should look for locked extents. This fixes things to make it more effective. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/extent_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 1c462f895c98..5ae0bffaa4d8 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -1761,7 +1761,7 @@ static void end_bio_extent_readpage(struct bio *bio, int err)
prefetchw(&bvec->bv_page->flags);
spin_lock(&tree->lock);
- state = find_first_extent_bit_state(tree, start, 0);
+ state = find_first_extent_bit_state(tree, start, EXTENT_LOCKED);
if (state && state->start == start) {
/*
* take a reference on the state, unlock will drop