Lines Matching refs:lockstart
979 u64 *lockstart, u64 *lockend, bool nowait, in lock_and_cleanup_extent_if_need() argument
1027 *lockstart = start_pos; in lock_and_cleanup_extent_if_need()
1067 u64 lockstart, lockend; in btrfs_check_nocow_lock() local
1077 lockstart = round_down(pos, fs_info->sectorsize); in btrfs_check_nocow_lock()
1080 num_bytes = lockend - lockstart + 1; in btrfs_check_nocow_lock()
1083 if (!btrfs_try_lock_ordered_range(inode, lockstart, lockend, in btrfs_check_nocow_lock()
1089 btrfs_lock_and_flush_ordered_range(inode, lockstart, lockend, in btrfs_check_nocow_lock()
1092 ret = can_nocow_extent(&inode->vfs_inode, lockstart, &num_bytes, in btrfs_check_nocow_lock()
1098 num_bytes - pos + lockstart); in btrfs_check_nocow_lock()
1099 unlock_extent(&inode->io_tree, lockstart, lockend, &cached_state); in btrfs_check_nocow_lock()
1185 u64 lockstart; in btrfs_buffered_write() local
1322 num_pages, pos, write_bytes, &lockstart, in btrfs_buffered_write()
1391 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_buffered_write()
2192 const u64 lockstart, in btrfs_punch_hole_lock_range() argument
2204 const u64 page_lockstart = round_up(lockstart, PAGE_SIZE); in btrfs_punch_hole_lock_range()
2208 truncate_pagecache_range(inode, lockstart, lockend); in btrfs_punch_hole_lock_range()
2210 lock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole_lock_range()
2226 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole_lock_range()
2230 btrfs_assert_inode_range_clean(BTRFS_I(inode), lockstart, lockend); in btrfs_punch_hole_lock_range()
2594 u64 lockstart; in btrfs_punch_hole() local
2625 lockstart = round_up(offset, fs_info->sectorsize); in btrfs_punch_hole()
2664 len = offset + len - lockstart; in btrfs_punch_hole()
2665 offset = lockstart; in btrfs_punch_hole()
2673 lockstart = offset; in btrfs_punch_hole()
2696 if (lockend < lockstart) { in btrfs_punch_hole()
2701 btrfs_punch_hole_lock_range(inode, lockstart, lockend, &cached_state); in btrfs_punch_hole()
2709 ret = btrfs_replace_file_extents(BTRFS_I(inode), path, lockstart, in btrfs_punch_hole()
2723 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole()
2982 const u64 lockstart = alloc_start; in btrfs_zero_range() local
2991 btrfs_punch_hole_lock_range(inode, lockstart, lockend, in btrfs_zero_range()
2996 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_zero_range()
3004 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_zero_range()
3467 u64 lockstart; in find_desired_extent() local
3507 lockstart = round_down(start, fs_info->sectorsize); in find_desired_extent()
3509 if (lockend <= lockstart) in find_desired_extent()
3510 lockend = lockstart + fs_info->sectorsize; in find_desired_extent()
3522 last_extent_end = lockstart; in find_desired_extent()
3524 lock_extent(&inode->io_tree, lockstart, lockend, &cached_state); in find_desired_extent()
3670 unlock_extent(&inode->io_tree, lockstart, lockend, &cached_state); in find_desired_extent()