projects
/
platform
/
upstream
/
btrfs-progs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Btrfs-progs: check, ability to detect and fix outdated snapshot root items
[platform/upstream/btrfs-progs.git]
/
disk-io.c
diff --git
a/disk-io.c
b/disk-io.c
index
02b6d42
..
77fc610
100644
(file)
--- a/
disk-io.c
+++ b/
disk-io.c
@@
-475,6
+475,8
@@
int btrfs_commit_transaction(struct btrfs_trans_handle *trans,
if (root->commit_root == root->node)
goto commit_tree;
+ if (root == root->fs_info->tree_root)
+ goto commit_tree;
free_extent_buffer(root->commit_root);
root->commit_root = NULL;