Lines Matching refs:lockstart

1295 				u64 *lockstart, u64 *lockend, bool nowait,  in lock_and_cleanup_extent_if_need()  argument
1342 *lockstart = start_pos; in lock_and_cleanup_extent_if_need()
1381 u64 lockstart, lockend; in btrfs_check_nocow_lock() local
1391 lockstart = round_down(pos, fs_info->sectorsize); in btrfs_check_nocow_lock()
1394 num_bytes = lockend - lockstart + 1; in btrfs_check_nocow_lock()
1397 if (!btrfs_try_lock_ordered_range(inode, lockstart, lockend)) { in btrfs_check_nocow_lock()
1402 btrfs_lock_and_flush_ordered_range(inode, lockstart, lockend, NULL); in btrfs_check_nocow_lock()
1404 ret = can_nocow_extent(&inode->vfs_inode, lockstart, &num_bytes, in btrfs_check_nocow_lock()
1410 num_bytes - pos + lockstart); in btrfs_check_nocow_lock()
1411 unlock_extent(&inode->io_tree, lockstart, lockend, NULL); in btrfs_check_nocow_lock()
1499 u64 lockstart; in btrfs_buffered_write() local
1636 num_pages, pos, write_bytes, &lockstart, in btrfs_buffered_write()
1705 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_buffered_write()
2502 const u64 lockstart, in btrfs_punch_hole_lock_range() argument
2514 const u64 page_lockstart = round_up(lockstart, PAGE_SIZE); in btrfs_punch_hole_lock_range()
2518 truncate_pagecache_range(inode, lockstart, lockend); in btrfs_punch_hole_lock_range()
2520 lock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole_lock_range()
2536 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole_lock_range()
2540 btrfs_assert_inode_range_clean(BTRFS_I(inode), lockstart, lockend); in btrfs_punch_hole_lock_range()
2906 u64 lockstart; in btrfs_punch_hole() local
2937 lockstart = round_up(offset, fs_info->sectorsize); in btrfs_punch_hole()
2976 len = offset + len - lockstart; in btrfs_punch_hole()
2977 offset = lockstart; in btrfs_punch_hole()
2985 lockstart = offset; in btrfs_punch_hole()
3008 if (lockend < lockstart) { in btrfs_punch_hole()
3013 btrfs_punch_hole_lock_range(inode, lockstart, lockend, &cached_state); in btrfs_punch_hole()
3021 ret = btrfs_replace_file_extents(BTRFS_I(inode), path, lockstart, in btrfs_punch_hole()
3036 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole()
3296 const u64 lockstart = alloc_start; in btrfs_zero_range() local
3305 btrfs_punch_hole_lock_range(inode, lockstart, lockend, in btrfs_zero_range()
3310 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_zero_range()
3318 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_zero_range()
3785 u64 lockstart; in find_desired_extent() local
3809 lockstart = round_down(start, fs_info->sectorsize); in find_desired_extent()
3811 if (lockend <= lockstart) in find_desired_extent()
3812 lockend = lockstart + fs_info->sectorsize; in find_desired_extent()
3824 last_extent_end = lockstart; in find_desired_extent()
3826 lock_extent(&inode->io_tree, lockstart, lockend, &cached_state); in find_desired_extent()
3969 unlock_extent(&inode->io_tree, lockstart, lockend, &cached_state); in find_desired_extent()