Lines Matching refs:lockstart
1409 u64 *lockstart, u64 *lockend, in lock_and_cleanup_extent_if_need() argument
1449 *lockstart = start_pos; in lock_and_cleanup_extent_if_need()
1469 u64 lockstart, lockend; in check_can_nocow() local
1477 lockstart = round_down(pos, root->sectorsize); in check_can_nocow()
1481 lock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend); in check_can_nocow()
1482 ordered = btrfs_lookup_ordered_range(inode, lockstart, in check_can_nocow()
1483 lockend - lockstart + 1); in check_can_nocow()
1487 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend); in check_can_nocow()
1492 num_bytes = lockend - lockstart + 1; in check_can_nocow()
1493 ret = can_nocow_extent(inode, lockstart, &num_bytes, NULL, NULL, NULL); in check_can_nocow()
1499 num_bytes - pos + lockstart); in check_can_nocow()
1502 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend); in check_can_nocow()
1516 u64 lockstart; in __btrfs_buffered_write() local
1611 pos, write_bytes, &lockstart, in __btrfs_buffered_write()
1689 lockstart, lockend, &cached_state, in __btrfs_buffered_write()
1701 lockstart = round_down(pos, root->sectorsize); in __btrfs_buffered_write()
1704 set_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, in __btrfs_buffered_write()
2344 u64 lockstart; in btrfs_punch_hole() local
2376 lockstart = round_up(offset, BTRFS_I(inode)->root->sectorsize); in btrfs_punch_hole()
2415 len = offset + len - lockstart; in btrfs_punch_hole()
2416 offset = lockstart; in btrfs_punch_hole()
2424 lockstart = offset; in btrfs_punch_hole()
2447 if (lockend < lockstart) { in btrfs_punch_hole()
2455 truncate_pagecache_range(inode, lockstart, lockend); in btrfs_punch_hole()
2457 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole()
2467 (ordered->file_offset + ordered->len <= lockstart || in btrfs_punch_hole()
2469 !btrfs_page_exists_in_range(inode, lockstart, lockend)) { in btrfs_punch_hole()
2476 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_punch_hole()
2478 ret = btrfs_wait_ordered_range(inode, lockstart, in btrfs_punch_hole()
2479 lockend - lockstart + 1); in btrfs_punch_hole()
2517 cur_offset = lockstart; in btrfs_punch_hole()
2617 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole()
2899 u64 lockstart; in find_desired_extent() local
2914 lockstart = round_down(start, root->sectorsize); in find_desired_extent()
2916 if (lockend <= lockstart) in find_desired_extent()
2917 lockend = lockstart + root->sectorsize; in find_desired_extent()
2919 len = lockend - lockstart + 1; in find_desired_extent()
2921 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in find_desired_extent()
2953 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in find_desired_extent()