Lines Matching refs:lockend

7126 static int lock_extent_direct(struct inode *inode, u64 lockstart, u64 lockend,  in lock_extent_direct()  argument
7138 if (!try_lock_extent(io_tree, lockstart, lockend, in lock_extent_direct()
7142 lock_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct()
7150 lockend - lockstart + 1); in lock_extent_direct()
7161 lockstart, lockend))) in lock_extent_direct()
7164 unlock_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct()
7416 u64 lockstart, lockend; in btrfs_dio_iomap_begin() local
7445 lockend = start + len - 1; in btrfs_dio_iomap_begin()
7469 lockstart, lockend)) in btrfs_dio_iomap_begin()
7506 ret = lock_extent_direct(inode, lockstart, lockend, &cached_state, flags); in btrfs_dio_iomap_begin()
7610 if (lockstart < lockend) in btrfs_dio_iomap_begin()
7615 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_dio_iomap_begin()
7641 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_dio_iomap_begin()
9804 u64 lockend, in btrfs_encoded_read_inline() argument
9875 unlock_extent(io_tree, start, lockend, cached_state); in btrfs_encoded_read_inline()
9962 u64 start, u64 lockend, in btrfs_encoded_read_regular() argument
9991 unlock_extent(io_tree, start, lockend, cached_state); in btrfs_encoded_read_regular()
10034 u64 start, lockend, disk_bytenr, disk_io_size; in btrfs_encoded_read() local
10052 lockend = start + BTRFS_MAX_UNCOMPRESSED - 1; in btrfs_encoded_read()
10058 lockend - start + 1); in btrfs_encoded_read()
10061 lock_extent(io_tree, start, lockend, &cached_state); in btrfs_encoded_read()
10063 lockend - start + 1); in btrfs_encoded_read()
10067 unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_encoded_read()
10071 em = btrfs_get_extent(inode, NULL, 0, start, lockend - start + 1); in btrfs_encoded_read()
10086 ret = btrfs_encoded_read_inline(iocb, iter, start, lockend, in btrfs_encoded_read()
10131 disk_io_size = min(lockend + 1, iocb->ki_pos + encoded->len) - start; in btrfs_encoded_read()
10141 unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_encoded_read()
10148 ret = btrfs_encoded_read_regular(iocb, iter, start, lockend, in btrfs_encoded_read()
10162 unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_encoded_read()