diff options
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 226f6d028c3f..9a65e97a4e28 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); |