diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-03-23 10:01:08 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-03-23 10:01:08 -0400 |
commit | d571976292839cec05a2820b08f7629b145ed157 (patch) | |
tree | 6a3f2f5a9b9c70f61d00ac10edaaaa60d5043474 /fs/btrfs/dir-item.c | |
parent | 79154b1b5bcf87903db7ff16a30b360b78d6fe4f (diff) |
btrfs_create, btrfs_write_super, btrfs_sync_fs
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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/dir-item.c b/fs/btrfs/dir-item.c index 75d6e373e98d..f81cbcc83b66 100644 --- a/fs/btrfs/dir-item.c +++ b/fs/btrfs/dir-item.c | |||
@@ -5,7 +5,7 @@ | |||
5 | #include "transaction.h" | 5 | #include "transaction.h" |
6 | 6 | ||
7 | int btrfs_insert_dir_item(struct btrfs_trans_handle *trans, struct btrfs_root | 7 | int btrfs_insert_dir_item(struct btrfs_trans_handle *trans, struct btrfs_root |
8 | *root, char *name, int name_len, u64 dir, u64 | 8 | *root, const char *name, int name_len, u64 dir, u64 |
9 | objectid, u8 type) | 9 | objectid, u8 type) |
10 | { | 10 | { |
11 | int ret = 0; | 11 | int ret = 0; |
@@ -35,6 +35,7 @@ int btrfs_insert_dir_item(struct btrfs_trans_handle *trans, struct btrfs_root | |||
35 | btrfs_set_dir_name_len(dir_item, name_len); | 35 | btrfs_set_dir_name_len(dir_item, name_len); |
36 | name_ptr = (char *)(dir_item + 1); | 36 | name_ptr = (char *)(dir_item + 1); |
37 | memcpy(name_ptr, name, name_len); | 37 | memcpy(name_ptr, name, name_len); |
38 | mark_buffer_dirty(path.nodes[0]); | ||
38 | out: | 39 | out: |
39 | btrfs_release_path(root, &path); | 40 | btrfs_release_path(root, &path); |
40 | return ret; | 41 | return ret; |