Lines Matching refs:lockstart

1383 				u64 *lockstart, u64 *lockend,  in lock_and_cleanup_extent_if_need()  argument
1421 *lockstart = start_pos; in lock_and_cleanup_extent_if_need()
1441 u64 lockstart, lockend; in check_can_nocow() local
1449 lockstart = round_down(pos, root->sectorsize); in check_can_nocow()
1453 lock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend); in check_can_nocow()
1454 ordered = btrfs_lookup_ordered_range(inode, lockstart, in check_can_nocow()
1455 lockend - lockstart + 1); in check_can_nocow()
1459 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend); in check_can_nocow()
1464 num_bytes = lockend - lockstart + 1; in check_can_nocow()
1465 ret = can_nocow_extent(inode, lockstart, &num_bytes, NULL, NULL, NULL); in check_can_nocow()
1471 num_bytes - pos + lockstart); in check_can_nocow()
1474 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend); in check_can_nocow()
1488 u64 lockstart; in __btrfs_buffered_write() local
1580 pos, &lockstart, &lockend, in __btrfs_buffered_write()
1646 lockstart, lockend, &cached_state, in __btrfs_buffered_write()
1658 lockstart = round_down(pos, root->sectorsize); in __btrfs_buffered_write()
1659 lockend = lockstart + in __btrfs_buffered_write()
1662 set_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, in __btrfs_buffered_write()
2287 u64 lockstart; in btrfs_punch_hole() local
2319 lockstart = round_up(offset, BTRFS_I(inode)->root->sectorsize); in btrfs_punch_hole()
2359 len = offset + len - lockstart; in btrfs_punch_hole()
2360 offset = lockstart; in btrfs_punch_hole()
2368 lockstart = offset; in btrfs_punch_hole()
2390 if (lockend < lockstart) { in btrfs_punch_hole()
2398 truncate_pagecache_range(inode, lockstart, lockend); in btrfs_punch_hole()
2400 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole()
2410 (ordered->file_offset + ordered->len <= lockstart || in btrfs_punch_hole()
2412 !btrfs_page_exists_in_range(inode, lockstart, lockend)) { in btrfs_punch_hole()
2419 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_punch_hole()
2421 ret = btrfs_wait_ordered_range(inode, lockstart, in btrfs_punch_hole()
2422 lockend - lockstart + 1); in btrfs_punch_hole()
2460 cur_offset = lockstart; in btrfs_punch_hole()
2560 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole()
2833 u64 lockstart; in find_desired_extent() local
2848 lockstart = round_down(start, root->sectorsize); in find_desired_extent()
2850 if (lockend <= lockstart) in find_desired_extent()
2851 lockend = lockstart + root->sectorsize; in find_desired_extent()
2853 len = lockend - lockstart + 1; in find_desired_extent()
2855 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, 0, in find_desired_extent()
2887 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in find_desired_extent()