Lines Matching refs:lockend
1383 u64 *lockstart, u64 *lockend, in lock_and_cleanup_extent_if_need() argument
1422 *lockend = last_pos; in lock_and_cleanup_extent_if_need()
1441 u64 lockstart, lockend; in check_can_nocow() local
1450 lockend = round_up(pos + *write_bytes, root->sectorsize) - 1; in check_can_nocow()
1453 lock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend); in check_can_nocow()
1455 lockend - lockstart + 1); in check_can_nocow()
1459 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend); in check_can_nocow()
1464 num_bytes = lockend - lockstart + 1; in check_can_nocow()
1474 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend); in check_can_nocow()
1489 u64 lockend; in __btrfs_buffered_write() local
1580 pos, &lockstart, &lockend, in __btrfs_buffered_write()
1646 lockstart, lockend, &cached_state, in __btrfs_buffered_write()
1659 lockend = lockstart + in __btrfs_buffered_write()
1663 lockend, EXTENT_NORESERVE, NULL, in __btrfs_buffered_write()
2288 u64 lockend; in btrfs_punch_hole() local
2320 lockend = round_down(offset + len, in btrfs_punch_hole()
2372 tail_start = lockend + 1; in btrfs_punch_hole()
2390 if (lockend < lockstart) { in btrfs_punch_hole()
2398 truncate_pagecache_range(inode, lockstart, lockend); in btrfs_punch_hole()
2400 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole()
2402 ordered = btrfs_lookup_first_ordered_extent(inode, lockend); in btrfs_punch_hole()
2411 ordered->file_offset > lockend)) && in btrfs_punch_hole()
2412 !btrfs_page_exists_in_range(inode, lockstart, lockend)) { in btrfs_punch_hole()
2420 lockend, &cached_state, GFP_NOFS); in btrfs_punch_hole()
2422 lockend - lockstart + 1); in btrfs_punch_hole()
2461 len = lockend - cur_offset; in btrfs_punch_hole()
2462 while (cur_offset < lockend) { in btrfs_punch_hole()
2464 cur_offset, lockend + 1, in btrfs_punch_hole()
2529 if (drop_end <= lockend) in btrfs_punch_hole()
2530 drop_end = lockend + 1; in btrfs_punch_hole()
2560 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole()
2834 u64 lockend; in find_desired_extent() local
2849 lockend = round_up(i_size_read(inode), root->sectorsize); in find_desired_extent()
2850 if (lockend <= lockstart) in find_desired_extent()
2851 lockend = lockstart + root->sectorsize; in find_desired_extent()
2852 lockend--; in find_desired_extent()
2853 len = lockend - lockstart + 1; in find_desired_extent()
2855 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, 0, in find_desired_extent()
2887 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in find_desired_extent()