Lines Matching refs:start_pos

522 	u64 start_pos;  in btrfs_dirty_pages()  local
528 start_pos = pos & ~((u64) fs_info->sectorsize - 1); in btrfs_dirty_pages()
529 num_bytes = round_up(write_bytes + pos - start_pos, in btrfs_dirty_pages()
532 end_of_last_block = start_pos + num_bytes - 1; in btrfs_dirty_pages()
538 clear_extent_bit(&BTRFS_I(inode)->io_tree, start_pos, end_of_last_block, in btrfs_dirty_pages()
543 if (start_pos >= isize && in btrfs_dirty_pages()
553 start_pos, in btrfs_dirty_pages()
560 err = btrfs_set_extent_delalloc(inode, start_pos, end_of_last_block, in btrfs_dirty_pages()
1478 u64 start_pos; in lock_and_cleanup_extent_if_need() local
1483 start_pos = round_down(pos, fs_info->sectorsize); in lock_and_cleanup_extent_if_need()
1484 last_pos = start_pos in lock_and_cleanup_extent_if_need()
1485 + round_up(pos + write_bytes - start_pos, in lock_and_cleanup_extent_if_need()
1488 if (start_pos < inode->vfs_inode.i_size) { in lock_and_cleanup_extent_if_need()
1491 lock_extent_bits(&inode->io_tree, start_pos, last_pos, in lock_and_cleanup_extent_if_need()
1493 ordered = btrfs_lookup_ordered_range(inode, start_pos, in lock_and_cleanup_extent_if_need()
1494 last_pos - start_pos + 1); in lock_and_cleanup_extent_if_need()
1496 ordered->file_offset + ordered->len > start_pos && in lock_and_cleanup_extent_if_need()
1498 unlock_extent_cached(&inode->io_tree, start_pos, in lock_and_cleanup_extent_if_need()
1512 *lockstart = start_pos; in lock_and_cleanup_extent_if_need()
1892 u64 start_pos; in btrfs_file_write_iter() local
1961 start_pos = round_down(pos, fs_info->sectorsize); in btrfs_file_write_iter()
1963 if (start_pos > oldsize) { in btrfs_file_write_iter()
1972 if (start_pos > round_up(oldsize, fs_info->sectorsize)) in btrfs_file_write_iter()