diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-06-28 15:57:36 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-06-28 15:57:36 -0400 |
commit | ccd467d60e81b48cdbecae93532b66bcdedca91d (patch) | |
tree | 7c8c74ca8c6c058fc2e3c90c0082e796b7c1e92e /fs/btrfs/inode.c | |
parent | f2654de42a759127cb1f1e8a626ec94178732e20 (diff) |
Btrfs: crash recovery fixes
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index eba06e7cf414..4fc0367d54f2 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -506,7 +506,7 @@ static int btrfs_truncate_in_trans(struct btrfs_trans_handle *trans, | |||
506 | extent_num_blocks); | 506 | extent_num_blocks); |
507 | inode->i_blocks -= (orig_num_blocks - | 507 | inode->i_blocks -= (orig_num_blocks - |
508 | extent_num_blocks) << 3; | 508 | extent_num_blocks) << 3; |
509 | mark_buffer_dirty(path->nodes[0]); | 509 | btrfs_mark_buffer_dirty(path->nodes[0]); |
510 | } else { | 510 | } else { |
511 | extent_start = | 511 | extent_start = |
512 | btrfs_file_extent_disk_blocknr(fi); | 512 | btrfs_file_extent_disk_blocknr(fi); |
@@ -2020,7 +2020,7 @@ static int create_subvol(struct btrfs_root *root, char *name, int namelen) | |||
2020 | btrfs_set_header_owner(&leaf->header, root->root_key.objectid); | 2020 | btrfs_set_header_owner(&leaf->header, root->root_key.objectid); |
2021 | memcpy(leaf->header.fsid, root->fs_info->disk_super->fsid, | 2021 | memcpy(leaf->header.fsid, root->fs_info->disk_super->fsid, |
2022 | sizeof(leaf->header.fsid)); | 2022 | sizeof(leaf->header.fsid)); |
2023 | mark_buffer_dirty(subvol); | 2023 | btrfs_mark_buffer_dirty(subvol); |
2024 | 2024 | ||
2025 | inode_item = &root_item.inode; | 2025 | inode_item = &root_item.inode; |
2026 | memset(inode_item, 0, sizeof(*inode_item)); | 2026 | memset(inode_item, 0, sizeof(*inode_item)); |
@@ -2497,7 +2497,7 @@ static int btrfs_symlink(struct inode *dir, struct dentry *dentry, | |||
2497 | ptr = btrfs_file_extent_inline_start(ei); | 2497 | ptr = btrfs_file_extent_inline_start(ei); |
2498 | btrfs_memcpy(root, path->nodes[0]->b_data, | 2498 | btrfs_memcpy(root, path->nodes[0]->b_data, |
2499 | ptr, symname, name_len); | 2499 | ptr, symname, name_len); |
2500 | mark_buffer_dirty(path->nodes[0]); | 2500 | btrfs_mark_buffer_dirty(path->nodes[0]); |
2501 | btrfs_free_path(path); | 2501 | btrfs_free_path(path); |
2502 | inode->i_op = &btrfs_symlink_inode_operations; | 2502 | inode->i_op = &btrfs_symlink_inode_operations; |
2503 | inode->i_mapping->a_ops = &btrfs_symlink_aops; | 2503 | inode->i_mapping->a_ops = &btrfs_symlink_aops; |