Lines Matching refs:lockstart

983 				u64 *lockstart, u64 *lockend, bool nowait,
1031 *lockstart = start_pos;
1071 u64 lockstart, lockend;
1081 lockstart = round_down(pos, fs_info->sectorsize);
1084 num_bytes = lockend - lockstart + 1;
1087 if (!btrfs_try_lock_ordered_range(inode, lockstart, lockend,
1093 btrfs_lock_and_flush_ordered_range(inode, lockstart, lockend,
1096 ret = can_nocow_extent(&inode->vfs_inode, lockstart, &num_bytes,
1102 num_bytes - pos + lockstart);
1103 unlock_extent(&inode->io_tree, lockstart, lockend, &cached_state);
1190 u64 lockstart;
1327 num_pages, pos, write_bytes, &lockstart,
1396 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart,
2207 const u64 lockstart,
2219 const u64 page_lockstart = round_up(lockstart, PAGE_SIZE);
2223 truncate_pagecache_range(inode, lockstart, lockend);
2225 lock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend,
2241 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend,
2245 btrfs_assert_inode_range_clean(BTRFS_I(inode), lockstart, lockend);
2543 * hole that overlaps a part of the region [lockstart, lockend] and
2611 u64 lockstart;
2642 lockstart = round_up(offset, fs_info->sectorsize);
2681 len = offset + len - lockstart;
2682 offset = lockstart;
2690 lockstart = offset;
2713 if (lockend < lockstart) {
2718 btrfs_punch_hole_lock_range(inode, lockstart, lockend, &cached_state);
2726 ret = btrfs_replace_file_extents(BTRFS_I(inode), path, lockstart,
2740 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend,
2997 const u64 lockstart = alloc_start;
3006 btrfs_punch_hole_lock_range(inode, lockstart, lockend,
3011 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart,
3019 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend,
3482 u64 lockstart;
3522 lockstart = round_down(start, fs_info->sectorsize);
3524 if (lockend <= lockstart)
3525 lockend = lockstart + fs_info->sectorsize;
3537 last_extent_end = lockstart;
3539 lock_extent(&inode->io_tree, lockstart, lockend, &cached_state);
3685 unlock_extent(&inode->io_tree, lockstart, lockend, &cached_state);