Signed-off-by: Chris Mason <chris.mason@oracle.com>
unsigned long map_len;
unsigned long map_start;
-
path = btrfs_alloc_path();
BUG_ON(!path);
again:
if (bio_index < bio->bi_vcnt) {
item = (struct btrfs_csum_item *)((char *)item +
BTRFS_CRC32_SIZE);
- if (item < item_end)
+ if (item < item_end && offset + PAGE_CACHE_SIZE ==
+ page_offset(bvec->bv_page)) {
+ offset = page_offset(bvec->bv_page);
goto next_bvec;
+ }
}
if (eb_token) {
unmap_extent_buffer(leaf, eb_token, KM_IRQ1);