diff mbox

[7/7] btrfs: fix a wrong error check in add_ra_bio_pages()

Message ID 4C513C95.3080403@cn.fujitsu.com (mailing list archive)
State Rejected
Headers show

Commit Message

Miao Xie July 29, 2010, 8:32 a.m. UTC
None
diff mbox

Patch

diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c
index cb3877c..8458840 100644
--- a/fs/btrfs/compression.c
+++ b/fs/btrfs/compression.c
@@ -467,7 +467,7 @@  static noinline int add_ra_bio_pages(struct inode *inode,
 		rcu_read_lock();
 		page = radix_tree_lookup(&mapping->page_tree, page_index);
 		rcu_read_unlock();
-		if (page) {
+		if (!page) {
 check_misses:
 			misses++;
 			if (misses > 4)