Lines Matching refs:lockstart
1466 u64 *lockstart, u64 *lockend, in lock_and_cleanup_extent_if_need() argument
1507 *lockstart = start_pos; in lock_and_cleanup_extent_if_need()
1528 u64 lockstart, lockend; in check_can_nocow() local
1536 lockstart = round_down(pos, fs_info->sectorsize); in check_can_nocow()
1541 lock_extent(&inode->io_tree, lockstart, lockend); in check_can_nocow()
1542 ordered = btrfs_lookup_ordered_range(inode, lockstart, in check_can_nocow()
1543 lockend - lockstart + 1); in check_can_nocow()
1547 unlock_extent(&inode->io_tree, lockstart, lockend); in check_can_nocow()
1552 num_bytes = lockend - lockstart + 1; in check_can_nocow()
1553 ret = can_nocow_extent(&inode->vfs_inode, lockstart, &num_bytes, in check_can_nocow()
1560 num_bytes - pos + lockstart); in check_can_nocow()
1563 unlock_extent(&inode->io_tree, lockstart, lockend); in check_can_nocow()
1580 u64 lockstart; in btrfs_buffered_write() local
1684 num_pages, pos, write_bytes, &lockstart, in btrfs_buffered_write()
1746 lockstart, lockend, &cached_state); in btrfs_buffered_write()
1759 lockstart = round_down(pos, in btrfs_buffered_write()
1764 set_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_buffered_write()
2357 const u64 lockstart, in btrfs_punch_hole_lock_range() argument
2365 truncate_pagecache_range(inode, lockstart, lockend); in btrfs_punch_hole_lock_range()
2367 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole_lock_range()
2377 (ordered->file_offset + ordered->len <= lockstart || in btrfs_punch_hole_lock_range()
2380 lockstart, lockend)) { in btrfs_punch_hole_lock_range()
2387 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_punch_hole_lock_range()
2389 ret = btrfs_wait_ordered_range(inode, lockstart, in btrfs_punch_hole_lock_range()
2390 lockend - lockstart + 1); in btrfs_punch_hole_lock_range()
2405 u64 lockstart; in btrfs_punch_hole() local
2437 lockstart = round_up(offset, btrfs_inode_sectorsize(inode)); in btrfs_punch_hole()
2476 len = offset + len - lockstart; in btrfs_punch_hole()
2477 offset = lockstart; in btrfs_punch_hole()
2485 lockstart = offset; in btrfs_punch_hole()
2508 if (lockend < lockstart) { in btrfs_punch_hole()
2513 ret = btrfs_punch_hole_lock_range(inode, lockstart, lockend, in btrfs_punch_hole()
2551 cur_offset = lockstart; in btrfs_punch_hole()
2661 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole()
2915 const u64 lockstart = alloc_start; in btrfs_zero_range() local
2928 ret = btrfs_punch_hole_lock_range(inode, lockstart, lockend, in btrfs_zero_range()
2936 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_zero_range()
3160 u64 lockstart; in find_desired_extent() local
3175 lockstart = round_down(start, fs_info->sectorsize); in find_desired_extent()
3178 if (lockend <= lockstart) in find_desired_extent()
3179 lockend = lockstart + fs_info->sectorsize; in find_desired_extent()
3181 len = lockend - lockstart + 1; in find_desired_extent()
3183 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in find_desired_extent()
3216 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in find_desired_extent()