From: Qu Wenruo <wqu@suse.com>
To: linux-btrfs@vger.kernel.org
Subject: [PATCH 1/2] btrfs: tree-checker: Make write time tree checker verify the content of leaves
Date: Wed, 3 Apr 2019 19:59:18 +0800 [thread overview]
Message-ID: <20190403115919.17049-1-wqu@suse.com> (raw)
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
next reply other threads:[~2019-04-03 11:59 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-03 11:59 Qu Wenruo [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190403115919.17049-1-wqu@suse.com \
--to=wqu@suse.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox