Lines Matching refs:sectorsize

301 	cur = max(cur + fs_info->sectorsize, range.start);  in __btrfs_run_defrag_inode()
418 u64 block_start = round_down(pos, fs_info->sectorsize); in btrfs_drop_pages()
419 u64 block_len = round_up(pos + copied, fs_info->sectorsize) - block_start; in btrfs_drop_pages()
463 start_pos = round_down(pos, fs_info->sectorsize); in btrfs_dirty_pages()
465 fs_info->sectorsize); in btrfs_dirty_pages()
778 fs_info->sectorsize); in btrfs_drop_extents()
1304 start_pos = round_down(pos, fs_info->sectorsize); in lock_and_cleanup_extent_if_need()
1305 last_pos = round_up(pos + write_bytes, fs_info->sectorsize) - 1; in lock_and_cleanup_extent_if_need()
1391 lockstart = round_down(pos, fs_info->sectorsize); in btrfs_check_nocow_lock()
1393 fs_info->sectorsize) - 1; in btrfs_check_nocow_lock()
1473 start_pos = round_down(pos, fs_info->sectorsize); in btrfs_write_check()
1477 loff_t end_pos = round_up(pos + count, fs_info->sectorsize); in btrfs_write_check()
1562 sector_offset = pos & (fs_info->sectorsize - 1); in btrfs_buffered_write()
1595 fs_info->sectorsize); in btrfs_buffered_write()
1652 fs_info->sectorsize); in btrfs_buffered_write()
1682 fs_info->sectorsize) + in btrfs_buffered_write()
1691 fs_info->sectorsize); in btrfs_buffered_write()
1738 round_down(pos, fs_info->sectorsize), in btrfs_buffered_write()
1756 const u32 blocksize_mask = fs_info->sectorsize - 1; in check_direct_IO()
2485 round_down(*start, fs_info->sectorsize), in find_first_non_hole()
2486 round_up(*len, fs_info->sectorsize)); in find_first_non_hole()
2647 u64 ino_size = round_up(inode->vfs_inode.i_size, fs_info->sectorsize); in btrfs_replace_file_extents()
2923 ino_size = round_up(inode->i_size, fs_info->sectorsize); in btrfs_punch_hole()
2937 lockstart = round_up(offset, fs_info->sectorsize); in btrfs_punch_hole()
2938 lockend = round_down(offset + len, fs_info->sectorsize) - 1; in btrfs_punch_hole()
2949 if (same_block && len < fs_info->sectorsize) { in btrfs_punch_hole()
3140 const u64 sectorsize = inode->root->fs_info->sectorsize; in btrfs_zero_range_check_range_boundary() local
3144 offset = round_down(offset, sectorsize); in btrfs_zero_range_check_range_boundary()
3145 em = btrfs_get_extent(inode, NULL, 0, offset, sectorsize); in btrfs_zero_range_check_range_boundary()
3170 const u64 sectorsize = fs_info->sectorsize; in btrfs_zero_range() local
3171 u64 alloc_start = round_down(offset, sectorsize); in btrfs_zero_range()
3172 u64 alloc_end = round_up(offset + len, sectorsize); in btrfs_zero_range()
3211 ASSERT(IS_ALIGNED(alloc_start, sectorsize)); in btrfs_zero_range()
3221 sectorsize); in btrfs_zero_range()
3233 if (len < sectorsize && em->block_start != EXTENT_MAP_HOLE) { in btrfs_zero_range()
3244 alloc_start = round_down(offset, sectorsize); in btrfs_zero_range()
3245 alloc_end = alloc_start + sectorsize; in btrfs_zero_range()
3249 alloc_start = round_up(offset, sectorsize); in btrfs_zero_range()
3250 alloc_end = round_down(offset + len, sectorsize); in btrfs_zero_range()
3258 if (!IS_ALIGNED(offset, sectorsize)) { in btrfs_zero_range()
3264 alloc_start = round_down(offset, sectorsize); in btrfs_zero_range()
3275 if (!IS_ALIGNED(offset + len, sectorsize)) { in btrfs_zero_range()
3281 alloc_end = round_up(offset + len, sectorsize); in btrfs_zero_range()
3356 int blocksize = BTRFS_I(inode)->root->fs_info->sectorsize; in btrfs_fallocate()
3670 u64 cur_offset = round_down(start, inode->root->fs_info->sectorsize); in btrfs_find_delalloc_in_range()
3809 lockstart = round_down(start, fs_info->sectorsize); in find_desired_extent()
3810 lockend = round_up(i_size, fs_info->sectorsize); in find_desired_extent()
3812 lockend = lockstart + fs_info->sectorsize; in find_desired_extent()