diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-10-15 16:15:53 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:03:56 -0400 |
commit | db94535db75e67fab12ccbb7f5ee548e33fed891 (patch) | |
tree | 1ad7dfc82b003294a94ee87d7329b24b902b369f /fs/btrfs/file-item.c | |
parent | 1a5bc167f6707542b79a55452075525620ed43f5 (diff) |
Btrfs: Allow tree blocks larger than the page size
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/file-item.c')
-rw-r--r-- | fs/btrfs/file-item.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/btrfs/file-item.c b/fs/btrfs/file-item.c index 226f6d028c3..9a65e97a4e2 100644 --- a/fs/btrfs/file-item.c +++ b/fs/btrfs/file-item.c | |||
@@ -27,8 +27,8 @@ | |||
27 | int btrfs_insert_file_extent(struct btrfs_trans_handle *trans, | 27 | int btrfs_insert_file_extent(struct btrfs_trans_handle *trans, |
28 | struct btrfs_root *root, | 28 | struct btrfs_root *root, |
29 | u64 objectid, u64 pos, | 29 | u64 objectid, u64 pos, |
30 | u64 offset, u64 disk_num_blocks, | 30 | u64 offset, u64 disk_num_bytes, |
31 | u64 num_blocks) | 31 | u64 num_bytes) |
32 | { | 32 | { |
33 | int ret = 0; | 33 | int ret = 0; |
34 | struct btrfs_file_extent_item *item; | 34 | struct btrfs_file_extent_item *item; |
@@ -50,10 +50,10 @@ int btrfs_insert_file_extent(struct btrfs_trans_handle *trans, | |||
50 | leaf = path->nodes[0]; | 50 | leaf = path->nodes[0]; |
51 | item = btrfs_item_ptr(leaf, path->slots[0], | 51 | item = btrfs_item_ptr(leaf, path->slots[0], |
52 | struct btrfs_file_extent_item); | 52 | struct btrfs_file_extent_item); |
53 | btrfs_set_file_extent_disk_blocknr(leaf, item, offset); | 53 | btrfs_set_file_extent_disk_bytenr(leaf, item, offset); |
54 | btrfs_set_file_extent_disk_num_blocks(leaf, item, disk_num_blocks); | 54 | btrfs_set_file_extent_disk_num_bytes(leaf, item, disk_num_bytes); |
55 | btrfs_set_file_extent_offset(leaf, item, 0); | 55 | btrfs_set_file_extent_offset(leaf, item, 0); |
56 | btrfs_set_file_extent_num_blocks(leaf, item, num_blocks); | 56 | btrfs_set_file_extent_num_bytes(leaf, item, num_bytes); |
57 | btrfs_set_file_extent_generation(leaf, item, trans->transid); | 57 | btrfs_set_file_extent_generation(leaf, item, trans->transid); |
58 | btrfs_set_file_extent_type(leaf, item, BTRFS_FILE_EXTENT_REG); | 58 | btrfs_set_file_extent_type(leaf, item, BTRFS_FILE_EXTENT_REG); |
59 | btrfs_mark_buffer_dirty(leaf); | 59 | btrfs_mark_buffer_dirty(leaf); |