diff options
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 968b84f17a19..e72a013d24bf 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c | |||
@@ -763,6 +763,8 @@ static noinline int create_pending_snapshot(struct btrfs_trans_handle *trans, | |||
763 | if (ret) | 763 | if (ret) |
764 | goto fail; | 764 | goto fail; |
765 | 765 | ||
766 | btrfs_record_root_in_trans(root); | ||
767 | btrfs_set_root_last_snapshot(&root->root_item, trans->transid); | ||
766 | memcpy(new_root_item, &root->root_item, sizeof(*new_root_item)); | 768 | memcpy(new_root_item, &root->root_item, sizeof(*new_root_item)); |
767 | 769 | ||
768 | key.objectid = objectid; | 770 | key.objectid = objectid; |