Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128438
b: refs/heads/master
c: 83df7c1
h: refs/heads/master
v: v3
  • Loading branch information
Chris Mason authored and David Woodhouse committed Aug 27, 2007
1 parent ea37d2b commit 70bca0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2cc58cf24f69be8632a3b29d653c318bf3bd8c84
refs/heads/master: 83df7c1d8b885e216c68c3f0469bec9b93666b74
2 changes: 2 additions & 0 deletions trunk/fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -2096,6 +2096,7 @@ static int create_snapshot(struct btrfs_root *root, char *name, int namelen)
struct btrfs_trans_handle *trans;
struct btrfs_key key;
struct btrfs_root_item new_root_item;
struct buffer_head *tmp;
int ret;
int err;
u64 objectid;
Expand Down Expand Up @@ -2123,6 +2124,7 @@ static int create_snapshot(struct btrfs_root *root, char *name, int namelen)
key.offset = 1;
key.flags = 0;
btrfs_set_key_type(&key, BTRFS_ROOT_ITEM_KEY);
btrfs_cow_block(trans, root, root->node, NULL, 0, &tmp);
btrfs_set_root_blocknr(&new_root_item, bh_blocknr(root->node));

ret = btrfs_insert_root(trans, root->fs_info->tree_root, &key,
Expand Down

0 comments on commit 70bca0e

Please sign in to comment.