diff options
Diffstat (limited to 'fs/btrfs/ordered-data.h')
-rw-r--r-- | fs/btrfs/ordered-data.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/fs/btrfs/ordered-data.h b/fs/btrfs/ordered-data.h index 260bf95dfe0c..ab66d5e8d6d6 100644 --- a/fs/btrfs/ordered-data.h +++ b/fs/btrfs/ordered-data.h | |||
@@ -33,15 +33,17 @@ struct btrfs_ordered_inode_tree { | |||
33 | * the ordered extent are on disk | 33 | * the ordered extent are on disk |
34 | */ | 34 | */ |
35 | struct btrfs_sector_sum { | 35 | struct btrfs_sector_sum { |
36 | u64 offset; | 36 | /* bytenr on disk */ |
37 | u64 bytenr; | ||
37 | u32 sum; | 38 | u32 sum; |
38 | }; | 39 | }; |
39 | 40 | ||
40 | struct btrfs_ordered_sum { | 41 | struct btrfs_ordered_sum { |
41 | u64 file_offset; | 42 | /* bytenr is the start of this extent on disk */ |
43 | u64 bytenr; | ||
44 | |||
42 | /* | 45 | /* |
43 | * this is the length in bytes covered by the sums array below. | 46 | * this is the length in bytes covered by the sums array below. |
44 | * But, the sums array may not be contiguous in the file. | ||
45 | */ | 47 | */ |
46 | unsigned long len; | 48 | unsigned long len; |
47 | struct list_head list; | 49 | struct list_head list; |
@@ -147,7 +149,7 @@ struct btrfs_ordered_extent * | |||
147 | btrfs_lookup_first_ordered_extent(struct inode * inode, u64 file_offset); | 149 | btrfs_lookup_first_ordered_extent(struct inode * inode, u64 file_offset); |
148 | int btrfs_ordered_update_i_size(struct inode *inode, | 150 | int btrfs_ordered_update_i_size(struct inode *inode, |
149 | struct btrfs_ordered_extent *ordered); | 151 | struct btrfs_ordered_extent *ordered); |
150 | int btrfs_find_ordered_sum(struct inode *inode, u64 offset, u32 *sum); | 152 | int btrfs_find_ordered_sum(struct inode *inode, u64 offset, u64 disk_bytenr, u32 *sum); |
151 | int btrfs_wait_on_page_writeback_range(struct address_space *mapping, | 153 | int btrfs_wait_on_page_writeback_range(struct address_space *mapping, |
152 | pgoff_t start, pgoff_t end); | 154 | pgoff_t start, pgoff_t end); |
153 | int btrfs_fdatawrite_range(struct address_space *mapping, loff_t start, | 155 | int btrfs_fdatawrite_range(struct address_space *mapping, loff_t start, |