Lines Matching defs:lockend
7152 static int lock_extent_direct(struct inode *inode, u64 lockstart, u64 lockend,
7164 if (!try_lock_extent(io_tree, lockstart, lockend,
7168 lock_extent(io_tree, lockstart, lockend, cached_state);
7176 lockend - lockstart + 1);
7187 lockstart, lockend)))
7190 unlock_extent(io_tree, lockstart, lockend, cached_state);
7442 u64 lockstart, lockend;
7471 lockend = start + len - 1;
7495 lockstart, lockend))
7532 ret = lock_extent_direct(inode, lockstart, lockend, &cached_state, flags);
7636 if (lockstart < lockend)
7641 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend,
7667 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend,
9830 u64 lockend,
9901 unlock_extent(io_tree, start, lockend, cached_state);
9988 u64 start, u64 lockend,
10017 unlock_extent(io_tree, start, lockend, cached_state);
10060 u64 start, lockend, disk_bytenr, disk_io_size;
10078 lockend = start + BTRFS_MAX_UNCOMPRESSED - 1;
10084 lockend - start + 1);
10087 lock_extent(io_tree, start, lockend, &cached_state);
10089 lockend - start + 1);
10093 unlock_extent(io_tree, start, lockend, &cached_state);
10097 em = btrfs_get_extent(inode, NULL, 0, start, lockend - start + 1);
10112 ret = btrfs_encoded_read_inline(iocb, iter, start, lockend,
10157 disk_io_size = min(lockend + 1, iocb->ki_pos + encoded->len) - start;
10167 unlock_extent(io_tree, start, lockend, &cached_state);
10174 ret = btrfs_encoded_read_regular(iocb, iter, start, lockend,
10188 unlock_extent(io_tree, start, lockend, &cached_state);