Lines Matching refs:lockend
1484 u64 *lockstart, u64 *lockend, in lock_and_cleanup_extent_if_need() argument
1523 *lockend = last_pos; in lock_and_cleanup_extent_if_need()
1554 u64 lockstart, lockend; in check_can_nocow() local
1563 lockend = round_up(pos + *write_bytes, in check_can_nocow()
1567 lockend, NULL); in check_can_nocow()
1569 num_bytes = lockend - lockstart + 1; in check_can_nocow()
1580 unlock_extent(&inode->io_tree, lockstart, lockend); in check_can_nocow()
1597 u64 lockend; in btrfs_buffered_write() local
1702 &lockend, &cached_state); in btrfs_buffered_write()
1771 lockstart, lockend, &cached_state); in btrfs_buffered_write()
1788 lockend = round_up(pos + copied, in btrfs_buffered_write()
1792 lockend, EXTENT_NORESERVE, NULL, in btrfs_buffered_write()
2412 const u64 lockend, in btrfs_punch_hole_lock_range() argument
2419 truncate_pagecache_range(inode, lockstart, lockend); in btrfs_punch_hole_lock_range()
2421 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole_lock_range()
2423 ordered = btrfs_lookup_first_ordered_extent(inode, lockend); in btrfs_punch_hole_lock_range()
2432 ordered->file_offset > lockend)) && in btrfs_punch_hole_lock_range()
2434 lockstart, lockend)) { in btrfs_punch_hole_lock_range()
2442 lockend, cached_state); in btrfs_punch_hole_lock_range()
2444 lockend - lockstart + 1); in btrfs_punch_hole_lock_range()
2725 u64 lockend; in btrfs_punch_hole() local
2751 lockend = round_down(offset + len, in btrfs_punch_hole()
2802 tail_start = lockend + 1; in btrfs_punch_hole()
2821 if (lockend < lockstart) { in btrfs_punch_hole()
2826 ret = btrfs_punch_hole_lock_range(inode, lockstart, lockend, in btrfs_punch_hole()
2837 ret = btrfs_punch_hole_range(inode, path, lockstart, lockend, NULL, in btrfs_punch_hole()
2851 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole()
3113 const u64 lockend = alloc_end - 1; in btrfs_zero_range() local
3125 ret = btrfs_punch_hole_lock_range(inode, lockstart, lockend, in btrfs_zero_range()
3134 lockend, &cached_state); in btrfs_zero_range()
3359 u64 lockend; in find_desired_extent() local
3374 lockend = round_up(i_size_read(inode), in find_desired_extent()
3376 if (lockend <= lockstart) in find_desired_extent()
3377 lockend = lockstart + fs_info->sectorsize; in find_desired_extent()
3378 lockend--; in find_desired_extent()
3379 len = lockend - lockstart + 1; in find_desired_extent()
3381 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in find_desired_extent()
3413 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in find_desired_extent()