btrfs_create, btrfs_write_super, btrfs_sync_fs
[deliverable/linux.git] / fs / btrfs / dir-item.c
index 75d6e373e98d21d5310970f685258db319ff2421..f81cbcc83b66c2557bbed6ab256e0bff3b6beb94 100644 (file)
@@ -5,7 +5,7 @@
 #include "transaction.h"
 
 int btrfs_insert_dir_item(struct btrfs_trans_handle *trans, struct btrfs_root
-                         *root, char *name, int name_len, u64 dir, u64
+                         *root, const char *name, int name_len, u64 dir, u64
                          objectid, u8 type)
 {
        int ret = 0;
@@ -35,6 +35,7 @@ int btrfs_insert_dir_item(struct btrfs_trans_handle *trans, struct btrfs_root
        btrfs_set_dir_name_len(dir_item, name_len);
        name_ptr = (char *)(dir_item + 1);
        memcpy(name_ptr, name, name_len);
+       mark_buffer_dirty(path.nodes[0]);
 out:
        btrfs_release_path(root, &path);
        return ret;
This page took 0.023489 seconds and 5 git commands to generate.