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/transaction.c | |
parent | 3eaa2885276fd6dac7b076a793932428b7168e74 (diff) |
Btrfs: Implement new dir index format
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 0f756e0175c0..768b0d223e68 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c | |||
@@ -577,14 +577,14 @@ static noinline int create_pending_snapshot(struct btrfs_trans_handle *trans, | |||
577 | ret = btrfs_insert_dir_item(trans, root->fs_info->tree_root, | 577 | ret = btrfs_insert_dir_item(trans, root->fs_info->tree_root, |
578 | pending->name, namelen, | 578 | pending->name, namelen, |
579 | root->fs_info->sb->s_root->d_inode->i_ino, | 579 | root->fs_info->sb->s_root->d_inode->i_ino, |
580 | &key, BTRFS_FT_DIR); | 580 | &key, BTRFS_FT_DIR, 0); |
581 | 581 | ||
582 | if (ret) | 582 | if (ret) |
583 | goto fail; | 583 | goto fail; |
584 | 584 | ||
585 | ret = btrfs_insert_inode_ref(trans, root->fs_info->tree_root, | 585 | ret = btrfs_insert_inode_ref(trans, root->fs_info->tree_root, |
586 | pending->name, strlen(pending->name), objectid, | 586 | pending->name, strlen(pending->name), objectid, |
587 | root->fs_info->sb->s_root->d_inode->i_ino); | 587 | root->fs_info->sb->s_root->d_inode->i_ino, 0); |
588 | 588 | ||
589 | /* Invalidate existing dcache entry for new snapshot. */ | 589 | /* Invalidate existing dcache entry for new snapshot. */ |
590 | btrfs_invalidate_dcache_root(root, pending->name, namelen); | 590 | btrfs_invalidate_dcache_root(root, pending->name, namelen); |