Lines Matching refs:lockend
1409 u64 *lockstart, u64 *lockend, in lock_and_cleanup_extent_if_need() argument
1445 *lockend = last_pos; in lock_and_cleanup_extent_if_need()
1476 u64 lockstart, lockend; in check_can_nocow() local
1487 lockend = round_up(pos + *write_bytes, in check_can_nocow()
1489 num_bytes = lockend - lockstart + 1; in check_can_nocow()
1494 if (!try_lock_extent(&inode->io_tree, lockstart, lockend)) in check_can_nocow()
1506 lockend, NULL); in check_can_nocow()
1520 unlock_extent(&inode->io_tree, lockstart, lockend); in check_can_nocow()
1572 u64 lockend; in btrfs_buffered_write() local
1677 &lockend, &cached_state); in btrfs_buffered_write()
1747 lockstart, lockend, &cached_state); in btrfs_buffered_write()
1764 lockend = round_up(pos + copied, in btrfs_buffered_write()
1768 lockend, EXTENT_NORESERVE, NULL, in btrfs_buffered_write()
2471 const u64 lockend, in btrfs_punch_hole_lock_range() argument
2478 truncate_pagecache_range(inode, lockstart, lockend); in btrfs_punch_hole_lock_range()
2480 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole_lock_range()
2483 lockend); in btrfs_punch_hole_lock_range()
2492 ordered->file_offset > lockend)) && in btrfs_punch_hole_lock_range()
2494 lockstart, lockend)) { in btrfs_punch_hole_lock_range()
2502 lockend, cached_state); in btrfs_punch_hole_lock_range()
2504 lockend - lockstart + 1); in btrfs_punch_hole_lock_range()
2836 u64 lockend; in btrfs_punch_hole() local
2862 lockend = round_down(offset + len, in btrfs_punch_hole()
2913 tail_start = lockend + 1; in btrfs_punch_hole()
2932 if (lockend < lockstart) { in btrfs_punch_hole()
2937 ret = btrfs_punch_hole_lock_range(inode, lockstart, lockend, in btrfs_punch_hole()
2948 ret = btrfs_replace_file_extents(inode, path, lockstart, lockend, NULL, in btrfs_punch_hole()
2962 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole()
3225 const u64 lockend = alloc_end - 1; in btrfs_zero_range() local
3233 ret = btrfs_punch_hole_lock_range(inode, lockstart, lockend, in btrfs_zero_range()
3246 lockend, &cached_state); in btrfs_zero_range()
3476 u64 lockend; in find_desired_extent() local
3491 lockend = round_up(i_size, fs_info->sectorsize); in find_desired_extent()
3492 if (lockend <= lockstart) in find_desired_extent()
3493 lockend = lockstart + fs_info->sectorsize; in find_desired_extent()
3494 lockend--; in find_desired_extent()
3495 len = lockend - lockstart + 1; in find_desired_extent()
3497 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in find_desired_extent()
3523 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in find_desired_extent()