btrfs: Fix block generation verification race
diff mbox

Message ID 4BDE30D6.9000602@oracle.com
State New, archived
Headers show

Commit Message

Yan, Zheng May 3, 2010, 2:11 a.m. UTC
None

Patch
diff mbox

diff -urp 1/fs/btrfs/ctree.c 2/fs/btrfs/ctree.c
--- 1/fs/btrfs/ctree.c	2010-04-14 14:49:56.342950744 +0800
+++ 2/fs/btrfs/ctree.c	2010-05-03 09:44:24.426642447 +0800
@@ -1589,7 +1589,7 @@  read_block_for_search(struct btrfs_trans
 	btrfs_release_path(NULL, p);
 
 	ret = -EAGAIN;
-	tmp = read_tree_block(root, blocknr, blocksize, gen);
+	tmp = read_tree_block(root, blocknr, blocksize, 0);
 	if (tmp) {
 		/*
 		 * If the read above didn't mark this buffer up to date,