Message ID | 1504662179-21877-1-git-send-email-gujx@cn.fujitsu.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/cmds-check.c b/cmds-check.c index 006edbde..6bd55e90 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -11652,6 +11652,7 @@ init: ret = btrfs_update_root(trans, root->fs_info->tree_root, &root->root_key, &root->root_item); if (ret) { + clean_tree_block(trans, root, c); free_extent_buffer(c); return ret; }
In btrfs_fsck_reinit_root, when btrfs_alloc_free_block fail, it will update on original root. Before update it, used btrfs_mark_buffer_dirty to set the flag to EXTENT_DIRTY. So, we should call clean_tree_block to clear the flag if update fail. Signed-off-by: Gu Jinxiang <gujx@cn.fujitsu.com> --- cmds-check.c | 1 + 1 file changed, 1 insertion(+)