diff mbox

[01/10] btrfs: add a return value for readahead_tree_block()

Message ID 4BF4E12F.6010103@cn.fujitsu.com (mailing list archive)
State New, archived
Headers show

Commit Message

Miao Xie May 20, 2010, 7:13 a.m. UTC
None
diff mbox

Patch

diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 6632e5c..35916d5 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -794,7 +794,7 @@  int readahead_tree_block(struct btrfs_root *root, u64 bytenr, u32 blocksize,
 	buf = btrfs_find_create_tree_block(root, bytenr, blocksize);
 	if (!buf)
 		return 0;
-	read_extent_buffer_pages(&BTRFS_I(btree_inode)->io_tree,
+	ret = read_extent_buffer_pages(&BTRFS_I(btree_inode)->io_tree,
 				 buf, 0, 0, btree_get_extent, 0);
 	free_extent_buffer(buf);
 	return ret;