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