Lines Matching refs:lockstart

1373 				u64 *lockstart, u64 *lockend,  in lock_and_cleanup_extent_if_need()  argument
1411 *lockstart = start_pos; in lock_and_cleanup_extent_if_need()
1431 u64 lockstart, lockend; in check_can_nocow() local
1439 lockstart = round_down(pos, root->sectorsize); in check_can_nocow()
1443 lock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend); in check_can_nocow()
1444 ordered = btrfs_lookup_ordered_range(inode, lockstart, 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()
1455 ret = can_nocow_extent(inode, lockstart, &num_bytes, NULL, NULL, NULL); in check_can_nocow()
1461 num_bytes - pos + lockstart); in check_can_nocow()
1464 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend); in check_can_nocow()
1478 u64 lockstart; in __btrfs_buffered_write() local
1569 pos, &lockstart, &lockend, in __btrfs_buffered_write()
1630 lockstart, lockend, &cached_state, in __btrfs_buffered_write()
1642 lockstart = round_down(pos, root->sectorsize); in __btrfs_buffered_write()
1643 lockend = lockstart + in __btrfs_buffered_write()
1646 set_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, in __btrfs_buffered_write()
2264 u64 lockstart; in btrfs_punch_hole() local
2296 lockstart = round_up(offset, BTRFS_I(inode)->root->sectorsize); in btrfs_punch_hole()
2336 len = offset + len - lockstart; in btrfs_punch_hole()
2337 offset = lockstart; in btrfs_punch_hole()
2345 lockstart = offset; 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()
2387 (ordered->file_offset + ordered->len <= lockstart || in btrfs_punch_hole()
2389 !btrfs_page_exists_in_range(inode, lockstart, lockend)) { in btrfs_punch_hole()
2396 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_punch_hole()
2398 ret = btrfs_wait_ordered_range(inode, lockstart, in btrfs_punch_hole()
2399 lockend - lockstart + 1); in btrfs_punch_hole()
2437 cur_offset = lockstart; in btrfs_punch_hole()
2524 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole()
2720 u64 lockstart; in find_desired_extent() local
2735 lockstart = round_down(start, root->sectorsize); in find_desired_extent()
2737 if (lockend <= lockstart) in find_desired_extent()
2738 lockend = lockstart + root->sectorsize; 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()