aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-04-28 16:40:52 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:02 -0400
commit4235298e4fc3c1a09f659cfe2fd285024eeb2241 (patch)
tree21700d3908215b4d9fe6089cb0cc6d96e340d875 /fs/btrfs/disk-io.c
parentec44a35cbeb26ab2da84cb280d778260f2312feb (diff)
Btrfs: Drop some verbose printks
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index a9ce491d279b..1c7d84aff864 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -214,25 +214,18 @@ static int btree_read_extent_buffer_pages(struct btrfs_root *root,
214 while (1) { 214 while (1) {
215 ret = read_extent_buffer_pages(io_tree, eb, start, 1, 215 ret = read_extent_buffer_pages(io_tree, eb, start, 1,
216 btree_get_extent, mirror_num); 216 btree_get_extent, mirror_num);
217 if (!ret) { 217 if (!ret)
218 if (mirror_num)
219printk("good read %Lu mirror %d total %d\n", eb->start, mirror_num, num_copies);
220 return ret; 218 return ret;
221 } 219
222 num_copies = btrfs_num_copies(&root->fs_info->mapping_tree, 220 num_copies = btrfs_num_copies(&root->fs_info->mapping_tree,
223 eb->start, eb->len); 221 eb->start, eb->len);
224printk("failed to read %Lu mirror %d total %d\n", eb->start, mirror_num, num_copies); 222 if (num_copies == 1)
225 if (num_copies == 1) {
226printk("reading %Lu failed only one copy\n", eb->start);
227 return ret; 223 return ret;
228 } 224
229 mirror_num++; 225 mirror_num++;
230 if (mirror_num > num_copies) { 226 if (mirror_num > num_copies)
231printk("bailing at mirror %d of %d\n", mirror_num, num_copies);
232 return ret; 227 return ret;
233 }
234 } 228 }
235printk("read extent buffer page last\n");
236 return -EIO; 229 return -EIO;
237} 230}
238 231
@@ -322,7 +315,6 @@ int btree_readpage_end_io_hook(struct page *page, u64 start, u64 end,
322 btrfs_clear_buffer_defrag(eb); 315 btrfs_clear_buffer_defrag(eb);
323 found_start = btrfs_header_bytenr(eb); 316 found_start = btrfs_header_bytenr(eb);
324 if (found_start != start) { 317 if (found_start != start) {
325printk("bad start on %Lu found %Lu\n", eb->start, found_start);
326 ret = -EIO; 318 ret = -EIO;
327 goto err; 319 goto err;
328 } 320 }