aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorJan Schmidt <list.btrfs@jan-o-sch.net>2011-06-13 14:02:58 -0400
committerJan Schmidt <list.btrfs@jan-o-sch.net>2011-09-29 06:54:28 -0400
commit8ddc7d9cd0a00062247c732b96386ec2462bdbc7 (patch)
treeea855863b3f6429002bfe31a3e522b4370d59d55 /fs/btrfs/disk-io.c
parent193ea74b2729e6ddc08fb6bde6e15a3bd4d94071 (diff)
btrfs: add mirror_num to extent_read_full_page
Currently, extent_read_full_page always assumes we are trying to read mirror 0, which generally is the best we can do. To add flexibility, pass it as a parameter. This will be needed by scrub fixup code. Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 07b3ac662e19..dc0343802535 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -908,7 +908,7 @@ static int btree_readpage(struct file *file, struct page *page)
908{ 908{
909 struct extent_io_tree *tree; 909 struct extent_io_tree *tree;
910 tree = &BTRFS_I(page->mapping->host)->io_tree; 910 tree = &BTRFS_I(page->mapping->host)->io_tree;
911 return extent_read_full_page(tree, page, btree_get_extent); 911 return extent_read_full_page(tree, page, btree_get_extent, 0);
912} 912}
913 913
914static int btree_releasepage(struct page *page, gfp_t gfp_flags) 914static int btree_releasepage(struct page *page, gfp_t gfp_flags)