diff options
author | Josef Bacik <jbacik@redhat.com> | 2007-11-16 11:46:07 -0500 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-11-16 11:46:07 -0500 |
commit | e3815ddde6e8ffdc7bec54a04611cfc243862372 (patch) | |
tree | 20d341b589f78512e79dc5f850eb9c830961f2e8 /dir-item.c | |
parent | 268ca701ab12d9ad86ebba8c35838252212fed2b (diff) |
xattr support for btrfs-progs
Diffstat (limited to 'dir-item.c')
-rw-r--r-- | dir-item.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -82,8 +82,8 @@ int btrfs_insert_dir_item(struct btrfs_trans_handle *trans, struct btrfs_root } btrfs_cpu_key_to_disk(&dir_item->location, location); btrfs_set_dir_type(dir_item, type); - btrfs_set_dir_flags(dir_item, 0); btrfs_set_dir_name_len(dir_item, name_len); + btrfs_set_dir_data_len(dir_item, 0); name_ptr = (char *)(dir_item + 1); memcpy(name_ptr, name, name_len); @@ -101,8 +101,8 @@ int btrfs_insert_dir_item(struct btrfs_trans_handle *trans, struct btrfs_root } btrfs_cpu_key_to_disk(&dir_item->location, location); btrfs_set_dir_type(dir_item, type); - btrfs_set_dir_flags(dir_item, 0); btrfs_set_dir_name_len(dir_item, name_len); + btrfs_set_dir_data_len(dir_item, 0); name_ptr = (char *)(dir_item + 1); memcpy(name_ptr, name, name_len); out: |