projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7939dd9
)
btrfs: remove useless WARN_ON in record_root_in_trans
author
Josef Bacik
<josef@toxicpanda.com>
Fri, 5 Nov 2021 20:45:50 +0000
(16:45 -0400)
committer
David Sterba
<dsterba@suse.com>
Mon, 3 Jan 2022 14:09:49 +0000
(15:09 +0100)
We don't set SHAREABLE on the extent root, we don't need to have this
safety check here.
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/transaction.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/transaction.c
b/fs/btrfs/transaction.c
index
cc83ae6
..
5eadb17
100644
(file)
--- a/
fs/btrfs/transaction.c
+++ b/
fs/btrfs/transaction.c
@@
-419,7
+419,6
@@
static int record_root_in_trans(struct btrfs_trans_handle *trans,
if ((test_bit(BTRFS_ROOT_SHAREABLE, &root->state) &&
root->last_trans < trans->transid) || force) {
- WARN_ON(root == fs_info->_extent_root);
WARN_ON(!force && root->commit_root != root->node);
/*