Lines Matching refs:lockend
1373 u64 *lockstart, u64 *lockend, in lock_and_cleanup_extent_if_need() argument
1412 *lockend = last_pos; in lock_and_cleanup_extent_if_need()
1431 u64 lockstart, lockend; in check_can_nocow() local
1440 lockend = round_up(pos + *write_bytes, root->sectorsize) - 1; in check_can_nocow()
1443 lock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend); in check_can_nocow()
1445 lockend - lockstart + 1); in check_can_nocow()
1449 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend); in check_can_nocow()
1454 num_bytes = lockend - lockstart + 1; in check_can_nocow()
1464 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend); in check_can_nocow()
1479 u64 lockend; in __btrfs_buffered_write() local
1569 pos, &lockstart, &lockend, in __btrfs_buffered_write()
1630 lockstart, lockend, &cached_state, in __btrfs_buffered_write()
1643 lockend = lockstart + in __btrfs_buffered_write()
1647 lockend, EXTENT_NORESERVE, NULL, in __btrfs_buffered_write()
2265 u64 lockend; in btrfs_punch_hole() local
2297 lockend = round_down(offset + len, in btrfs_punch_hole()
2349 tail_start = lockend + 1; in btrfs_punch_hole()
2367 if (lockend < lockstart) { in btrfs_punch_hole()
2375 truncate_pagecache_range(inode, lockstart, lockend); in btrfs_punch_hole()
2377 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole()
2379 ordered = btrfs_lookup_first_ordered_extent(inode, lockend); in btrfs_punch_hole()
2388 ordered->file_offset > lockend)) && in btrfs_punch_hole()
2389 !btrfs_page_exists_in_range(inode, lockstart, lockend)) { in btrfs_punch_hole()
2397 lockend, &cached_state, GFP_NOFS); in btrfs_punch_hole()
2399 lockend - lockstart + 1); in btrfs_punch_hole()
2438 len = lockend - cur_offset; in btrfs_punch_hole()
2439 while (cur_offset < lockend) { in btrfs_punch_hole()
2441 cur_offset, lockend + 1, in btrfs_punch_hole()
2524 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole()
2721 u64 lockend; in find_desired_extent() local
2736 lockend = round_up(i_size_read(inode), root->sectorsize); in find_desired_extent()
2737 if (lockend <= lockstart) in find_desired_extent()
2738 lockend = lockstart + root->sectorsize; in find_desired_extent()
2739 lockend--; in find_desired_extent()
2740 len = lockend - lockstart + 1; in find_desired_extent()
2742 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, 0, in find_desired_extent()
2774 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in find_desired_extent()