diff options
author | Josef Bacik <jbacik@redhat.com> | 2008-07-24 12:12:38 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:05 -0400 |
commit | aec7477b3b0e8ec93f6d274f25ba40b0665134d4 (patch) | |
tree | 2f689681e2f1b48d1c42b2242e21cbf456ec4c55 /fs/btrfs/dir-item.c | |
parent | 3eaa2885276fd6dac7b076a793932428b7168e74 (diff) |
Btrfs: Implement new dir index format
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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/dir-item.c b/fs/btrfs/dir-item.c index 7a73dc59dc4d..eb4dd3d75cf9 100644 --- a/fs/btrfs/dir-item.c +++ b/fs/btrfs/dir-item.c | |||
@@ -110,7 +110,7 @@ int btrfs_insert_xattr_item(struct btrfs_trans_handle *trans, | |||
110 | 110 | ||
111 | int btrfs_insert_dir_item(struct btrfs_trans_handle *trans, struct btrfs_root | 111 | int btrfs_insert_dir_item(struct btrfs_trans_handle *trans, struct btrfs_root |
112 | *root, const char *name, int name_len, u64 dir, | 112 | *root, const char *name, int name_len, u64 dir, |
113 | struct btrfs_key *location, u8 type) | 113 | struct btrfs_key *location, u8 type, u64 index) |
114 | { | 114 | { |
115 | int ret = 0; | 115 | int ret = 0; |
116 | int ret2 = 0; | 116 | int ret2 = 0; |
@@ -156,7 +156,7 @@ second_insert: | |||
156 | btrfs_release_path(root, path); | 156 | btrfs_release_path(root, path); |
157 | 157 | ||
158 | btrfs_set_key_type(&key, BTRFS_DIR_INDEX_KEY); | 158 | btrfs_set_key_type(&key, BTRFS_DIR_INDEX_KEY); |
159 | key.offset = location->objectid; | 159 | key.offset = index; |
160 | dir_item = insert_with_overflow(trans, root, path, &key, data_size, | 160 | dir_item = insert_with_overflow(trans, root, path, &key, data_size, |
161 | name, name_len); | 161 | name, name_len); |
162 | if (IS_ERR(dir_item)) { | 162 | if (IS_ERR(dir_item)) { |