Lines Matching refs:lockstart

912 				u64 *lockstart, u64 *lockend, bool nowait,  in lock_and_cleanup_extent_if_need()  argument
953 *lockstart = start_pos; in lock_and_cleanup_extent_if_need()
992 u64 lockstart, lockend; in btrfs_check_nocow_lock() local
1002 lockstart = round_down(pos, fs_info->sectorsize); in btrfs_check_nocow_lock()
1005 num_bytes = lockend - lockstart + 1; in btrfs_check_nocow_lock()
1008 if (!btrfs_try_lock_ordered_range(inode, lockstart, lockend, in btrfs_check_nocow_lock()
1014 btrfs_lock_and_flush_ordered_range(inode, lockstart, lockend, in btrfs_check_nocow_lock()
1017 ret = can_nocow_extent(&inode->vfs_inode, lockstart, &num_bytes, in btrfs_check_nocow_lock()
1023 num_bytes - pos + lockstart); in btrfs_check_nocow_lock()
1024 unlock_extent(&inode->io_tree, lockstart, lockend, &cached_state); in btrfs_check_nocow_lock()
1091 u64 lockstart; in btrfs_buffered_write() local
1206 folio, pos, write_bytes, &lockstart, in btrfs_buffered_write()
1277 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_buffered_write()
2091 const u64 lockstart, in btrfs_punch_hole_lock_range() argument
2103 const u64 page_lockstart = round_up(lockstart, PAGE_SIZE); in btrfs_punch_hole_lock_range()
2107 truncate_pagecache_range(inode, lockstart, lockend); in btrfs_punch_hole_lock_range()
2109 lock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole_lock_range()
2125 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole_lock_range()
2129 btrfs_assert_inode_range_clean(BTRFS_I(inode), lockstart, lockend); in btrfs_punch_hole_lock_range()
2495 u64 lockstart; in btrfs_punch_hole() local
2526 lockstart = round_up(offset, fs_info->sectorsize); in btrfs_punch_hole()
2565 len = offset + len - lockstart; in btrfs_punch_hole()
2566 offset = lockstart; in btrfs_punch_hole()
2574 lockstart = offset; in btrfs_punch_hole()
2597 if (lockend < lockstart) { in btrfs_punch_hole()
2602 btrfs_punch_hole_lock_range(inode, lockstart, lockend, &cached_state); in btrfs_punch_hole()
2610 ret = btrfs_replace_file_extents(BTRFS_I(inode), path, lockstart, in btrfs_punch_hole()
2624 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole()
2881 const u64 lockstart = alloc_start; in btrfs_zero_range() local
2890 btrfs_punch_hole_lock_range(inode, lockstart, lockend, in btrfs_zero_range()
2895 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_zero_range()
2903 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_zero_range()
3366 u64 lockstart; in find_desired_extent() local
3434 lockstart = round_down(start, fs_info->sectorsize); in find_desired_extent()
3436 if (lockend <= lockstart) in find_desired_extent()
3437 lockend = lockstart + fs_info->sectorsize; in find_desired_extent()
3449 last_extent_end = lockstart; in find_desired_extent()
3451 lock_extent(&inode->io_tree, lockstart, lockend, &cached_state); in find_desired_extent()
3597 unlock_extent(&inode->io_tree, lockstart, lockend, &cached_state); in find_desired_extent()