public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] btrfs: tree-checker: Make write time tree checker verify the content of leaves
@ 2019-04-03 11:59 Qu Wenruo
  2019-04-03 11:59 ` [PATCH 2/2] btrfs: tree-checker: Remove comprehensive root owner check Qu Wenruo
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Qu Wenruo @ 2019-04-03 11:59 UTC (permalink / raw)
  To: linux-btrfs

Commit "btrfs: Do mandatory tree block check before submitting bio" is
designed to check leaves contents, just as read time check.

However due to the confusing parameter list, "false" is passed to where
it is supposed to be "true".

Signed-off-by: Qu Wenruo <wqu@suse.com>
---
 fs/btrfs/tree-checker.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/btrfs/tree-checker.c b/fs/btrfs/tree-checker.c
index 4318e3e67443..204fe53c90aa 100644
--- a/fs/btrfs/tree-checker.c
+++ b/fs/btrfs/tree-checker.c
@@ -999,7 +999,7 @@ int btrfs_check_leaf_relaxed(struct btrfs_fs_info *fs_info,
 int btrfs_check_leaf_write(struct btrfs_fs_info *fs_info,
 			   struct extent_buffer *leaf)
 {
-	return check_leaf(leaf, false, false);
+	return check_leaf(leaf, true, false);
 }
 
 int btrfs_check_node(struct btrfs_fs_info *fs_info, struct extent_buffer *node)
-- 
2.21.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-04-03 14:59 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-03 11:59 [PATCH 1/2] btrfs: tree-checker: Make write time tree checker verify the content of leaves Qu Wenruo
2019-04-03 11:59 ` [PATCH 2/2] btrfs: tree-checker: Remove comprehensive root owner check Qu Wenruo
2019-04-03 14:21   ` David Sterba
2019-04-03 14:26     ` Qu Wenruo
2019-04-03 15:00       ` David Sterba
2019-04-03 14:22   ` Nikolay Borisov
2019-04-03 14:12 ` [PATCH 1/2] btrfs: tree-checker: Make write time tree checker verify the content of leaves Nikolay Borisov
2019-04-03 14:20   ` Qu Wenruo
2019-04-03 14:13 ` David Sterba
2019-04-03 14:15   ` Qu Wenruo
2019-04-03 14:25     ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox