Lines Matching refs:lockend

979 				u64 *lockstart, u64 *lockend, bool nowait,  in lock_and_cleanup_extent_if_need()  argument
1028 *lockend = last_pos; in lock_and_cleanup_extent_if_need()
1067 u64 lockstart, lockend; in btrfs_check_nocow_lock() local
1078 lockend = round_up(pos + *write_bytes, 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()
1099 unlock_extent(&inode->io_tree, lockstart, lockend, &cached_state); in btrfs_check_nocow_lock()
1186 u64 lockend; in btrfs_buffered_write() local
1323 &lockend, nowait, &cached_state); in btrfs_buffered_write()
1392 lockend, &cached_state); in btrfs_buffered_write()
2193 const u64 lockend, in btrfs_punch_hole_lock_range() argument
2205 const u64 page_lockend = round_down(lockend + 1, PAGE_SIZE) - 1; 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()
2595 u64 lockend; in btrfs_punch_hole() local
2626 lockend = round_down(offset + len, fs_info->sectorsize) - 1; in btrfs_punch_hole()
2677 tail_start = lockend + 1; 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()
2710 lockend, NULL, &trans); in btrfs_punch_hole()
2723 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole()
2983 const u64 lockend = alloc_end - 1; in btrfs_zero_range() local
2991 btrfs_punch_hole_lock_range(inode, lockstart, lockend, in btrfs_zero_range()
2997 lockend, &cached_state); in btrfs_zero_range()
3004 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_zero_range()
3468 u64 lockend; in find_desired_extent() local
3508 lockend = round_up(i_size, 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()
3511 lockend--; 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()