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

Message ID 4C513C95.3080403@cn.fujitsu.com
State Rejected
Headers show

Commit Message

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

Patch
diff mbox

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)