Lines Matching refs:lockstart

1408 				u64 *lockstart, u64 *lockend,  in lock_and_cleanup_extent_if_need()  argument
1443 *lockstart = start_pos; in lock_and_cleanup_extent_if_need()
1475 u64 lockstart, lockend; in check_can_nocow() local
1485 lockstart = round_down(pos, fs_info->sectorsize); in check_can_nocow()
1488 num_bytes = lockend - lockstart + 1; in check_can_nocow()
1493 if (!try_lock_extent(&inode->io_tree, lockstart, lockend)) in check_can_nocow()
1496 ordered = btrfs_lookup_ordered_range(inode, lockstart, in check_can_nocow()
1504 btrfs_lock_and_flush_ordered_range(inode, lockstart, in check_can_nocow()
1508 ret = can_nocow_extent(&inode->vfs_inode, lockstart, &num_bytes, in check_can_nocow()
1516 num_bytes - pos + lockstart); in check_can_nocow()
1519 unlock_extent(&inode->io_tree, lockstart, lockend); in check_can_nocow()
1570 u64 lockstart; in btrfs_buffered_write() local
1675 num_pages, pos, write_bytes, &lockstart, in btrfs_buffered_write()
1746 lockstart, lockend, &cached_state); in btrfs_buffered_write()
1761 lockstart = round_down(pos, in btrfs_buffered_write()
1766 set_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_buffered_write()
2476 const u64 lockstart, in btrfs_punch_hole_lock_range() argument
2484 truncate_pagecache_range(inode, lockstart, lockend); in btrfs_punch_hole_lock_range()
2486 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole_lock_range()
2497 (ordered->file_offset + ordered->num_bytes <= lockstart || in btrfs_punch_hole_lock_range()
2500 lockstart, lockend)) { in btrfs_punch_hole_lock_range()
2507 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_punch_hole_lock_range()
2509 ret = btrfs_wait_ordered_range(inode, lockstart, in btrfs_punch_hole_lock_range()
2510 lockend - lockstart + 1); in btrfs_punch_hole_lock_range()
2844 u64 lockstart; in btrfs_punch_hole() local
2874 lockstart = round_up(offset, btrfs_inode_sectorsize(BTRFS_I(inode))); in btrfs_punch_hole()
2913 len = offset + len - lockstart; in btrfs_punch_hole()
2914 offset = lockstart; in btrfs_punch_hole()
2922 lockstart = offset; in btrfs_punch_hole()
2945 if (lockend < lockstart) { in btrfs_punch_hole()
2950 ret = btrfs_punch_hole_lock_range(inode, lockstart, lockend, in btrfs_punch_hole()
2961 ret = btrfs_replace_file_extents(inode, path, lockstart, lockend, NULL, in btrfs_punch_hole()
2975 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole()
3237 const u64 lockstart = alloc_start; in btrfs_zero_range() local
3246 ret = btrfs_punch_hole_lock_range(inode, lockstart, lockend, in btrfs_zero_range()
3253 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_zero_range()
3261 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_zero_range()
3495 u64 lockstart; in find_desired_extent() local
3510 lockstart = round_down(start, fs_info->sectorsize); in find_desired_extent()
3512 if (lockend <= lockstart) in find_desired_extent()
3513 lockend = lockstart + fs_info->sectorsize; in find_desired_extent()
3515 len = lockend - lockstart + 1; in find_desired_extent()
3517 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in find_desired_extent()
3543 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in find_desired_extent()