Lines Matching refs:start_pos
471 u64 start_pos; in btrfs_dirty_pages() local
483 start_pos = round_down(pos, fs_info->sectorsize); in btrfs_dirty_pages()
484 num_bytes = round_up(write_bytes + pos - start_pos, in btrfs_dirty_pages()
488 end_of_last_block = start_pos + num_bytes - 1; in btrfs_dirty_pages()
494 clear_extent_bit(&inode->io_tree, start_pos, end_of_last_block, in btrfs_dirty_pages()
498 err = btrfs_set_extent_delalloc(inode, start_pos, end_of_last_block, in btrfs_dirty_pages()
506 btrfs_page_clamp_set_uptodate(fs_info, p, start_pos, num_bytes); in btrfs_dirty_pages()
508 btrfs_page_clamp_set_dirty(fs_info, p, start_pos, num_bytes); in btrfs_dirty_pages()
1447 u64 start_pos; in lock_and_cleanup_extent_if_need() local
1452 start_pos = round_down(pos, fs_info->sectorsize); in lock_and_cleanup_extent_if_need()
1455 if (start_pos < inode->vfs_inode.i_size) { in lock_and_cleanup_extent_if_need()
1458 lock_extent_bits(&inode->io_tree, start_pos, last_pos, in lock_and_cleanup_extent_if_need()
1460 ordered = btrfs_lookup_ordered_range(inode, start_pos, in lock_and_cleanup_extent_if_need()
1461 last_pos - start_pos + 1); in lock_and_cleanup_extent_if_need()
1463 ordered->file_offset + ordered->num_bytes > start_pos && in lock_and_cleanup_extent_if_need()
1465 unlock_extent_cached(&inode->io_tree, start_pos, in lock_and_cleanup_extent_if_need()
1478 *lockstart = start_pos; in lock_and_cleanup_extent_if_need()
1610 loff_t start_pos; in btrfs_write_check() local
1640 start_pos = round_down(pos, fs_info->sectorsize); in btrfs_write_check()
1642 if (start_pos > oldsize) { in btrfs_write_check()