diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-04-10 09:27:04 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-04-10 09:27:04 -0400 |
commit | c5739bba5260a59cebd20a51a55080592c8d3b07 (patch) | |
tree | ff33f7acddcfc60e7395209ff949bb9d90afda32 /fs/btrfs/dir-item.c | |
parent | 0f7d52f4431c530b4f39c524448c688bb7754de5 (diff) |
Btrfs: snapshot progress
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/dir-item.c')
-rw-r--r-- | fs/btrfs/dir-item.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/btrfs/dir-item.c b/fs/btrfs/dir-item.c index 7aed9f015b55..0ba46bc0da9a 100644 --- a/fs/btrfs/dir-item.c +++ b/fs/btrfs/dir-item.c | |||
@@ -55,12 +55,14 @@ int btrfs_insert_dir_item(struct btrfs_trans_handle *trans, struct btrfs_root | |||
55 | btrfs_set_dir_flags(dir_item, 0); | 55 | btrfs_set_dir_flags(dir_item, 0); |
56 | btrfs_set_dir_name_len(dir_item, name_len); | 56 | btrfs_set_dir_name_len(dir_item, name_len); |
57 | name_ptr = (char *)(dir_item + 1); | 57 | name_ptr = (char *)(dir_item + 1); |
58 | |||
59 | btrfs_memcpy(root, path->nodes[0]->b_data, name_ptr, name, name_len); | ||
60 | btrfs_mark_buffer_dirty(path->nodes[0]); | ||
61 | |||
58 | /* FIXME, use some real flag for selecting the extra index */ | 62 | /* FIXME, use some real flag for selecting the extra index */ |
59 | if (root == root->fs_info->tree_root) | 63 | if (root == root->fs_info->tree_root) |
60 | goto out; | 64 | goto out; |
61 | 65 | ||
62 | btrfs_memcpy(root, path->nodes[0]->b_data, name_ptr, name, name_len); | ||
63 | btrfs_mark_buffer_dirty(path->nodes[0]); | ||
64 | btrfs_release_path(root, path); | 66 | btrfs_release_path(root, path); |
65 | 67 | ||
66 | btrfs_set_key_type(&key, BTRFS_DIR_INDEX_KEY); | 68 | btrfs_set_key_type(&key, BTRFS_DIR_INDEX_KEY); |