Lines Matching refs:real_size
322 unsigned int real_size; in btrfs_submit_compressed_write() local
331 real_size = min_t(u64, U32_MAX, PAGE_SIZE - offset_in_page(offset)); in btrfs_submit_compressed_write()
332 real_size = min_t(u64, real_size, compressed_len - offset); in btrfs_submit_compressed_write()
333 ASSERT(IS_ALIGNED(real_size, fs_info->sectorsize)); in btrfs_submit_compressed_write()
335 added = bio_add_page(bio, page, real_size, offset_in_page(offset)); in btrfs_submit_compressed_write()
340 ASSERT(added == real_size); in btrfs_submit_compressed_write()
600 unsigned int real_size; in btrfs_submit_compressed_read() local
609 real_size = min_t(u64, U32_MAX, PAGE_SIZE - offset_in_page(offset)); in btrfs_submit_compressed_read()
610 real_size = min_t(u64, real_size, compressed_len - offset); in btrfs_submit_compressed_read()
611 ASSERT(IS_ALIGNED(real_size, fs_info->sectorsize)); in btrfs_submit_compressed_read()
613 added = bio_add_page(comp_bio, page, real_size, offset_in_page(offset)); in btrfs_submit_compressed_read()
618 ASSERT(added == real_size); in btrfs_submit_compressed_read()