Lines Matching refs:lockend
7246 static int lock_extent_direct(struct inode *inode, u64 lockstart, u64 lockend, in lock_extent_direct() argument
7258 if (!try_lock_extent(io_tree, lockstart, lockend)) in lock_extent_direct()
7261 lock_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct()
7269 lockend - lockstart + 1); in lock_extent_direct()
7280 lockstart, lockend))) in lock_extent_direct()
7283 unlock_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct()
7529 u64 lockstart, lockend; in btrfs_dio_iomap_begin() local
7558 lockend = start + len - 1; in btrfs_dio_iomap_begin()
7582 lockstart, lockend)) in btrfs_dio_iomap_begin()
7619 ret = lock_extent_direct(inode, lockstart, lockend, &cached_state, flags); in btrfs_dio_iomap_begin()
7723 if (lockstart < lockend) in btrfs_dio_iomap_begin()
7728 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_dio_iomap_begin()
7758 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_dio_iomap_begin()
10136 u64 lockend, in btrfs_encoded_read_inline() argument
10207 unlock_extent(io_tree, start, lockend, cached_state); in btrfs_encoded_read_inline()
10381 u64 start, u64 lockend, in btrfs_encoded_read_regular() argument
10410 unlock_extent(io_tree, start, lockend, cached_state); in btrfs_encoded_read_regular()
10453 u64 start, lockend, disk_bytenr, disk_io_size; in btrfs_encoded_read() local
10471 lockend = start + BTRFS_MAX_UNCOMPRESSED - 1; in btrfs_encoded_read()
10477 lockend - start + 1); in btrfs_encoded_read()
10480 lock_extent(io_tree, start, lockend, &cached_state); in btrfs_encoded_read()
10482 lockend - start + 1); in btrfs_encoded_read()
10486 unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_encoded_read()
10490 em = btrfs_get_extent(inode, NULL, 0, start, lockend - start + 1); in btrfs_encoded_read()
10505 ret = btrfs_encoded_read_inline(iocb, iter, start, lockend, in btrfs_encoded_read()
10550 disk_io_size = min(lockend + 1, iocb->ki_pos + encoded->len) - start; in btrfs_encoded_read()
10560 unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_encoded_read()
10567 ret = btrfs_encoded_read_regular(iocb, iter, start, lockend, in btrfs_encoded_read()
10581 unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_encoded_read()