diff options
author | Chris Mason <chris.mason@oracle.com> | 2011-04-16 06:55:39 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-04-16 06:55:39 -0400 |
commit | 0d399205edf3a4c290e76ebb36e541593af4a1b4 (patch) | |
tree | 980af1dc3d803727d658aaa7b8565e06009e85e3 /fs/btrfs | |
parent | 0e4f8f888845f9dca540ad175884244e5db5eea2 (diff) | |
download | op-kernel-dev-0d399205edf3a4c290e76ebb36e541593af4a1b4.zip op-kernel-dev-0d399205edf3a4c290e76ebb36e541593af4a1b4.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 1c462f89..5ae0bff 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 |