Lines Matching refs:sectorsize

101 	u64 block_start = round_down(pos, fs_info->sectorsize);  in btrfs_drop_pages()
102 u64 block_len = round_up(pos + copied, fs_info->sectorsize) - block_start; in btrfs_drop_pages()
146 start_pos = round_down(pos, fs_info->sectorsize); in btrfs_dirty_pages()
148 fs_info->sectorsize); in btrfs_dirty_pages()
466 fs_info->sectorsize); in btrfs_drop_extents()
1002 start_pos = round_down(pos, fs_info->sectorsize); in lock_and_cleanup_extent_if_need()
1003 last_pos = round_up(pos + write_bytes, fs_info->sectorsize) - 1; in lock_and_cleanup_extent_if_need()
1091 lockstart = round_down(pos, fs_info->sectorsize); in btrfs_check_nocow_lock()
1093 fs_info->sectorsize) - 1; in btrfs_check_nocow_lock()
1175 start_pos = round_down(pos, fs_info->sectorsize); in btrfs_write_check()
1179 loff_t end_pos = round_up(pos + count, fs_info->sectorsize); in btrfs_write_check()
1261 sector_offset = pos & (fs_info->sectorsize - 1); in btrfs_buffered_write()
1294 fs_info->sectorsize); in btrfs_buffered_write()
1351 fs_info->sectorsize); in btrfs_buffered_write()
1381 fs_info->sectorsize) + in btrfs_buffered_write()
1390 fs_info->sectorsize); in btrfs_buffered_write()
1437 round_down(pos, fs_info->sectorsize), in btrfs_buffered_write()
1985 reserved_space = round_up(size - page_start, fs_info->sectorsize); in btrfs_page_mkwrite()
2205 round_down(*start, fs_info->sectorsize), in find_first_non_hole()
2206 round_up(*len, fs_info->sectorsize)); in find_first_non_hole()
2369 u64 ino_size = round_up(inode->vfs_inode.i_size, fs_info->sectorsize); in btrfs_replace_file_extents()
2644 ino_size = round_up(inode->i_size, fs_info->sectorsize); in btrfs_punch_hole()
2658 lockstart = round_up(offset, fs_info->sectorsize); in btrfs_punch_hole()
2659 lockend = round_down(offset + len, fs_info->sectorsize) - 1; in btrfs_punch_hole()
2670 if (same_block && len < fs_info->sectorsize) { in btrfs_punch_hole()
2859 const u64 sectorsize = inode->root->fs_info->sectorsize; in btrfs_zero_range_check_range_boundary() local
2863 offset = round_down(offset, sectorsize); in btrfs_zero_range_check_range_boundary()
2864 em = btrfs_get_extent(inode, NULL, offset, sectorsize); in btrfs_zero_range_check_range_boundary()
2889 const u64 sectorsize = fs_info->sectorsize; in btrfs_zero_range() local
2890 u64 alloc_start = round_down(offset, sectorsize); in btrfs_zero_range()
2891 u64 alloc_end = round_up(offset + len, sectorsize); in btrfs_zero_range()
2929 ASSERT(IS_ALIGNED(alloc_start, sectorsize)); in btrfs_zero_range()
2938 em = btrfs_get_extent(BTRFS_I(inode), NULL, alloc_start, sectorsize); in btrfs_zero_range()
2950 if (len < sectorsize && em->disk_bytenr != EXTENT_MAP_HOLE) { in btrfs_zero_range()
2961 alloc_start = round_down(offset, sectorsize); in btrfs_zero_range()
2962 alloc_end = alloc_start + sectorsize; in btrfs_zero_range()
2966 alloc_start = round_up(offset, sectorsize); in btrfs_zero_range()
2967 alloc_end = round_down(offset + len, sectorsize); in btrfs_zero_range()
2975 if (!IS_ALIGNED(offset, sectorsize)) { in btrfs_zero_range()
2981 alloc_start = round_down(offset, sectorsize); in btrfs_zero_range()
2992 if (!IS_ALIGNED(offset + len, sectorsize)) { in btrfs_zero_range()
2998 alloc_end = round_up(offset + len, sectorsize); in btrfs_zero_range()
3033 fs_info->sectorsize, in btrfs_zero_range()
3073 int blocksize = BTRFS_I(inode)->root->fs_info->sectorsize; in btrfs_fallocate()
3378 u64 cur_offset = round_down(start, inode->root->fs_info->sectorsize); in btrfs_find_delalloc_in_range()
3566 lockstart = round_down(start, fs_info->sectorsize); in find_desired_extent()
3567 lockend = round_up(i_size, fs_info->sectorsize); in find_desired_extent()
3569 lockend = lockstart + fs_info->sectorsize; in find_desired_extent()