diff options
-rw-r--r-- | fs/btrfs/check-integrity.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/btrfs/check-integrity.c b/fs/btrfs/check-integrity.c index 3281f7ebc0f7..656b07637e39 100644 --- a/fs/btrfs/check-integrity.c +++ b/fs/btrfs/check-integrity.c | |||
@@ -1900,7 +1900,9 @@ again: | |||
1900 | dev_state, | 1900 | dev_state, |
1901 | dev_bytenr); | 1901 | dev_bytenr); |
1902 | } | 1902 | } |
1903 | if (block->logical_bytenr != bytenr) { | 1903 | if (block->logical_bytenr != bytenr && |
1904 | !(!block->is_metadata && | ||
1905 | block->logical_bytenr == 0)) | ||
1904 | printk(KERN_INFO | 1906 | printk(KERN_INFO |
1905 | "Written block @%llu (%s/%llu/%d)" | 1907 | "Written block @%llu (%s/%llu/%d)" |
1906 | " found in hash table, %c," | 1908 | " found in hash table, %c," |
@@ -1910,15 +1912,14 @@ again: | |||
1910 | block->mirror_num, | 1912 | block->mirror_num, |
1911 | btrfsic_get_block_type(state, block), | 1913 | btrfsic_get_block_type(state, block), |
1912 | block->logical_bytenr); | 1914 | block->logical_bytenr); |
1913 | block->logical_bytenr = bytenr; | 1915 | else if (state->print_mask & BTRFSIC_PRINT_MASK_VERBOSE) |
1914 | } else if (state->print_mask & | ||
1915 | BTRFSIC_PRINT_MASK_VERBOSE) | ||
1916 | printk(KERN_INFO | 1916 | printk(KERN_INFO |
1917 | "Written block @%llu (%s/%llu/%d)" | 1917 | "Written block @%llu (%s/%llu/%d)" |
1918 | " found in hash table, %c.\n", | 1918 | " found in hash table, %c.\n", |
1919 | bytenr, dev_state->name, dev_bytenr, | 1919 | bytenr, dev_state->name, dev_bytenr, |
1920 | block->mirror_num, | 1920 | block->mirror_num, |
1921 | btrfsic_get_block_type(state, block)); | 1921 | btrfsic_get_block_type(state, block)); |
1922 | block->logical_bytenr = bytenr; | ||
1922 | } else { | 1923 | } else { |
1923 | if (num_pages * PAGE_CACHE_SIZE < | 1924 | if (num_pages * PAGE_CACHE_SIZE < |
1924 | state->datablock_size) { | 1925 | state->datablock_size) { |