Lines Matching refs:lockend
1408 u64 *lockstart, u64 *lockend, in lock_and_cleanup_extent_if_need() argument
1444 *lockend = last_pos; in lock_and_cleanup_extent_if_need()
1475 u64 lockstart, lockend; in check_can_nocow() local
1486 lockend = round_up(pos + *write_bytes, in check_can_nocow()
1488 num_bytes = lockend - lockstart + 1; in check_can_nocow()
1493 if (!try_lock_extent(&inode->io_tree, lockstart, lockend)) in check_can_nocow()
1505 lockend, NULL); in check_can_nocow()
1519 unlock_extent(&inode->io_tree, lockstart, lockend); in check_can_nocow()
1571 u64 lockend; in btrfs_buffered_write() local
1676 &lockend, &cached_state); in btrfs_buffered_write()
1746 lockstart, lockend, &cached_state); in btrfs_buffered_write()
1763 lockend = round_up(pos + copied, in btrfs_buffered_write()
1767 lockend, EXTENT_NORESERVE, NULL, in btrfs_buffered_write()
2477 const u64 lockend, in btrfs_punch_hole_lock_range() argument
2484 truncate_pagecache_range(inode, lockstart, lockend); in btrfs_punch_hole_lock_range()
2486 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole_lock_range()
2489 lockend); in btrfs_punch_hole_lock_range()
2498 ordered->file_offset > lockend)) && in btrfs_punch_hole_lock_range()
2500 lockstart, lockend)) { in btrfs_punch_hole_lock_range()
2508 lockend, cached_state); in btrfs_punch_hole_lock_range()
2510 lockend - lockstart + 1); in btrfs_punch_hole_lock_range()
2845 u64 lockend; in btrfs_punch_hole() local
2875 lockend = round_down(offset + len, in btrfs_punch_hole()
2926 tail_start = lockend + 1; in btrfs_punch_hole()
2945 if (lockend < lockstart) { in btrfs_punch_hole()
2950 ret = btrfs_punch_hole_lock_range(inode, lockstart, lockend, in btrfs_punch_hole()
2961 ret = btrfs_replace_file_extents(inode, path, lockstart, lockend, NULL, in btrfs_punch_hole()
2975 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole()
3238 const u64 lockend = alloc_end - 1; in btrfs_zero_range() local
3246 ret = btrfs_punch_hole_lock_range(inode, lockstart, lockend, in btrfs_zero_range()
3254 lockend, &cached_state); in btrfs_zero_range()
3262 lockend, &cached_state); in btrfs_zero_range()
3496 u64 lockend; in find_desired_extent() local
3511 lockend = round_up(i_size, fs_info->sectorsize); in find_desired_extent()
3512 if (lockend <= lockstart) in find_desired_extent()
3513 lockend = lockstart + fs_info->sectorsize; in find_desired_extent()
3514 lockend--; in find_desired_extent()
3515 len = lockend - lockstart + 1; in find_desired_extent()
3517 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in find_desired_extent()
3543 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in find_desired_extent()