diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-04-28 16:40:52 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:02 -0400 |
commit | 4235298e4fc3c1a09f659cfe2fd285024eeb2241 (patch) | |
tree | 21700d3908215b4d9fe6089cb0cc6d96e340d875 /fs/btrfs/extent_io.c | |
parent | ec44a35cbeb26ab2da84cb280d778260f2312feb (diff) |
Btrfs: Drop some verbose printks
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r-- | fs/btrfs/extent_io.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 2368536629e7..dd403b426ff5 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c | |||
@@ -3003,17 +3003,18 @@ int extent_buffer_uptodate(struct extent_io_tree *tree, | |||
3003 | struct extent_buffer *eb) | 3003 | struct extent_buffer *eb) |
3004 | { | 3004 | { |
3005 | int ret = 0; | 3005 | int ret = 0; |
3006 | int ret2; | ||
3007 | unsigned long num_pages; | 3006 | unsigned long num_pages; |
3008 | unsigned long i; | 3007 | unsigned long i; |
3009 | struct page *page; | 3008 | struct page *page; |
3010 | int pg_uptodate = 1; | 3009 | int pg_uptodate = 1; |
3011 | 3010 | ||
3012 | if (eb->flags & EXTENT_UPTODATE) | 3011 | if (eb->flags & EXTENT_UPTODATE) |
3013 | ret = 1; | 3012 | return 1; |
3014 | 3013 | ||
3015 | ret2 = test_range_bit(tree, eb->start, eb->start + eb->len - 1, | 3014 | ret = test_range_bit(tree, eb->start, eb->start + eb->len - 1, |
3016 | EXTENT_UPTODATE, 1); | 3015 | EXTENT_UPTODATE, 1); |
3016 | if (ret) | ||
3017 | return ret; | ||
3017 | 3018 | ||
3018 | num_pages = num_extent_pages(eb->start, eb->len); | 3019 | num_pages = num_extent_pages(eb->start, eb->len); |
3019 | for (i = 0; i < num_pages; i++) { | 3020 | for (i = 0; i < num_pages; i++) { |
@@ -3023,11 +3024,7 @@ int extent_buffer_uptodate(struct extent_io_tree *tree, | |||
3023 | break; | 3024 | break; |
3024 | } | 3025 | } |
3025 | } | 3026 | } |
3026 | if ((ret || ret2) && !pg_uptodate) { | 3027 | return pg_uptodate; |
3027 | printk("uptodate error2 eb %Lu ret %d ret2 %d pg_uptodate %d\n", eb->start, ret, ret2, pg_uptodate); | ||
3028 | WARN_ON(1); | ||
3029 | } | ||
3030 | return (ret || ret2); | ||
3031 | } | 3028 | } |
3032 | EXPORT_SYMBOL(extent_buffer_uptodate); | 3029 | EXPORT_SYMBOL(extent_buffer_uptodate); |
3033 | 3030 | ||