diff --git a/kernel-shared/transaction.c b/kernel-shared/transaction.c index d30be5b5..d5b349e4 100644 --- a/kernel-shared/transaction.c +++ b/kernel-shared/transaction.c @@ -15,6 +15,7 @@ */ #include "kerncompat.h" +#include "kernel-lib/bitops.h" #include "kernel-shared/disk-io.h" #include "kernel-shared/transaction.h" #include "kernel-shared/delayed-ref.h" @@ -119,6 +120,7 @@ int commit_tree_roots(struct btrfs_trans_handle *trans, next = fs_info->dirty_cowonly_roots.next; list_del_init(next); root = list_entry(next, struct btrfs_root, dirty_list); + clear_bit(BTRFS_ROOT_DIRTY, &root->state); ret = update_cowonly_root(trans, root); free_extent_buffer(root->commit_root); root->commit_root = NULL;