summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/btrfs/disk-io.c2
-rw-r--r--fs/btrfs/tree-checker.c3
-rw-r--r--fs/btrfs/tree-checker.h3
3 files changed, 3 insertions, 5 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 0b2b75a7efbd..3c488fc493bd 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -652,7 +652,7 @@ static int btree_readpage_end_io_hook(struct btrfs_io_bio *io_bio,
652 * that we don't try and read the other copies of this block, just 652 * that we don't try and read the other copies of this block, just
653 * return -EIO. 653 * return -EIO.
654 */ 654 */
655 if (found_level == 0 && btrfs_check_leaf_full(fs_info, eb)) { 655 if (found_level == 0 && btrfs_check_leaf_full(eb)) {
656 set_bit(EXTENT_BUFFER_CORRUPT, &eb->bflags); 656 set_bit(EXTENT_BUFFER_CORRUPT, &eb->bflags);
657 ret = -EIO; 657 ret = -EIO;
658 } 658 }
diff --git a/fs/btrfs/tree-checker.c b/fs/btrfs/tree-checker.c
index 6828de4e976c..594f8a0bff61 100644
--- a/fs/btrfs/tree-checker.c
+++ b/fs/btrfs/tree-checker.c
@@ -963,8 +963,7 @@ static int check_leaf(struct extent_buffer *leaf, bool check_item_data)
963 return 0; 963 return 0;
964} 964}
965 965
966int btrfs_check_leaf_full(struct btrfs_fs_info *fs_info, 966int btrfs_check_leaf_full(struct extent_buffer *leaf)
967 struct extent_buffer *leaf)
968{ 967{
969 return check_leaf(leaf, true); 968 return check_leaf(leaf, true);
970} 969}
diff --git a/fs/btrfs/tree-checker.h b/fs/btrfs/tree-checker.h
index 4df45e8a6659..0a0c25a2e77c 100644
--- a/fs/btrfs/tree-checker.h
+++ b/fs/btrfs/tree-checker.h
@@ -14,8 +14,7 @@
14 * Will check not only the item pointers, but also every possible member 14 * Will check not only the item pointers, but also every possible member
15 * in item data. 15 * in item data.
16 */ 16 */
17int btrfs_check_leaf_full(struct btrfs_fs_info *fs_info, 17int btrfs_check_leaf_full(struct extent_buffer *leaf);
18 struct extent_buffer *leaf);
19 18
20/* 19/*
21 * Less strict leaf checker. 20 * Less strict leaf checker.