Lines Matching refs:lockstart

1409 				u64 *lockstart, u64 *lockend,  in lock_and_cleanup_extent_if_need()  argument
1444 *lockstart = start_pos; in lock_and_cleanup_extent_if_need()
1476 u64 lockstart, lockend; in check_can_nocow() local
1486 lockstart = round_down(pos, fs_info->sectorsize); in check_can_nocow()
1489 num_bytes = lockend - lockstart + 1; in check_can_nocow()
1494 if (!try_lock_extent(&inode->io_tree, lockstart, lockend)) in check_can_nocow()
1497 ordered = btrfs_lookup_ordered_range(inode, lockstart, in check_can_nocow()
1505 btrfs_lock_and_flush_ordered_range(inode, lockstart, in check_can_nocow()
1509 ret = can_nocow_extent(&inode->vfs_inode, lockstart, &num_bytes, in check_can_nocow()
1517 num_bytes - pos + lockstart); in check_can_nocow()
1520 unlock_extent(&inode->io_tree, lockstart, lockend); in check_can_nocow()
1571 u64 lockstart; in btrfs_buffered_write() local
1676 num_pages, pos, write_bytes, &lockstart, in btrfs_buffered_write()
1747 lockstart, lockend, &cached_state); in btrfs_buffered_write()
1762 lockstart = round_down(pos, in btrfs_buffered_write()
1767 set_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_buffered_write()
2470 const u64 lockstart, in btrfs_punch_hole_lock_range() argument
2478 truncate_pagecache_range(inode, lockstart, lockend); in btrfs_punch_hole_lock_range()
2480 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole_lock_range()
2491 (ordered->file_offset + ordered->num_bytes <= lockstart || in btrfs_punch_hole_lock_range()
2494 lockstart, lockend)) { in btrfs_punch_hole_lock_range()
2501 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_punch_hole_lock_range()
2503 ret = btrfs_wait_ordered_range(inode, lockstart, in btrfs_punch_hole_lock_range()
2504 lockend - lockstart + 1); in btrfs_punch_hole_lock_range()
2835 u64 lockstart; in btrfs_punch_hole() local
2861 lockstart = round_up(offset, btrfs_inode_sectorsize(BTRFS_I(inode))); in btrfs_punch_hole()
2900 len = offset + len - lockstart; in btrfs_punch_hole()
2901 offset = lockstart; in btrfs_punch_hole()
2909 lockstart = offset; in btrfs_punch_hole()
2932 if (lockend < lockstart) { in btrfs_punch_hole()
2937 ret = btrfs_punch_hole_lock_range(inode, lockstart, lockend, in btrfs_punch_hole()
2948 ret = btrfs_replace_file_extents(inode, path, lockstart, lockend, NULL, in btrfs_punch_hole()
2962 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole()
3224 const u64 lockstart = alloc_start; in btrfs_zero_range() local
3233 ret = btrfs_punch_hole_lock_range(inode, lockstart, lockend, in btrfs_zero_range()
3245 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_zero_range()
3475 u64 lockstart; in find_desired_extent() local
3490 lockstart = round_down(start, fs_info->sectorsize); in find_desired_extent()
3492 if (lockend <= lockstart) in find_desired_extent()
3493 lockend = lockstart + fs_info->sectorsize; in find_desired_extent()
3495 len = lockend - lockstart + 1; in find_desired_extent()
3497 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in find_desired_extent()
3523 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in find_desired_extent()