Lines Matching refs:lockend

1466 				u64 *lockstart, u64 *lockend,  in lock_and_cleanup_extent_if_need()  argument
1508 *lockend = last_pos; in lock_and_cleanup_extent_if_need()
1528 u64 lockstart, lockend; in check_can_nocow() local
1537 lockend = round_up(pos + *write_bytes, in check_can_nocow()
1541 lock_extent(&inode->io_tree, lockstart, lockend); in check_can_nocow()
1543 lockend - lockstart + 1); in check_can_nocow()
1547 unlock_extent(&inode->io_tree, lockstart, lockend); in check_can_nocow()
1552 num_bytes = lockend - lockstart + 1; in check_can_nocow()
1563 unlock_extent(&inode->io_tree, lockstart, lockend); in check_can_nocow()
1581 u64 lockend; in btrfs_buffered_write() local
1685 &lockend, &cached_state); in btrfs_buffered_write()
1746 lockstart, lockend, &cached_state); in btrfs_buffered_write()
1761 lockend = round_up(pos + copied, in btrfs_buffered_write()
1765 lockend, EXTENT_NORESERVE, NULL, in btrfs_buffered_write()
2358 const u64 lockend, in btrfs_punch_hole_lock_range() argument
2365 truncate_pagecache_range(inode, lockstart, lockend); in btrfs_punch_hole_lock_range()
2367 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole_lock_range()
2369 ordered = btrfs_lookup_first_ordered_extent(inode, lockend); in btrfs_punch_hole_lock_range()
2378 ordered->file_offset > lockend)) && in btrfs_punch_hole_lock_range()
2380 lockstart, lockend)) { in btrfs_punch_hole_lock_range()
2388 lockend, cached_state); in btrfs_punch_hole_lock_range()
2390 lockend - lockstart + 1); in btrfs_punch_hole_lock_range()
2406 u64 lockend; in btrfs_punch_hole() local
2438 lockend = round_down(offset + len, in btrfs_punch_hole()
2489 tail_start = lockend + 1; in btrfs_punch_hole()
2508 if (lockend < lockstart) { in btrfs_punch_hole()
2513 ret = btrfs_punch_hole_lock_range(inode, lockstart, lockend, in btrfs_punch_hole()
2552 len = lockend - cur_offset; in btrfs_punch_hole()
2553 while (cur_offset < lockend) { in btrfs_punch_hole()
2555 cur_offset, lockend + 1, in btrfs_punch_hole()
2627 if (drop_end <= lockend) in btrfs_punch_hole()
2628 drop_end = lockend + 1; in btrfs_punch_hole()
2661 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole()
2916 const u64 lockend = alloc_end - 1; in btrfs_zero_range() local
2928 ret = btrfs_punch_hole_lock_range(inode, lockstart, lockend, in btrfs_zero_range()
2937 lockend, &cached_state); in btrfs_zero_range()
3161 u64 lockend; in find_desired_extent() local
3176 lockend = round_up(i_size_read(inode), in find_desired_extent()
3178 if (lockend <= lockstart) in find_desired_extent()
3179 lockend = lockstart + fs_info->sectorsize; in find_desired_extent()
3180 lockend--; in find_desired_extent()
3181 len = lockend - lockstart + 1; in find_desired_extent()
3183 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in find_desired_extent()
3216 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in find_desired_extent()