| /linux/fs/btrfs/ |
| H A D | direct-io.c | 35 static int lock_extent_direct(struct inode *inode, u64 lockstart, u64 lockend, in lock_extent_direct() argument 47 if (!btrfs_try_lock_dio_extent(io_tree, lockstart, lockend, cached_state)) in lock_extent_direct() 50 btrfs_lock_dio_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct() 55 if (!btrfs_try_lock_extent(io_tree, lockstart, lockend, in lock_extent_direct() 61 btrfs_lock_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct() 69 lockend - lockstart + 1); in lock_extent_direct() 80 lockstart, lockend))) in lock_extent_direct() 83 btrfs_unlock_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct() 136 btrfs_unlock_dio_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct() 364 u64 lockstart, lockend; in btrfs_dio_iomap_begin() local [all …]
|
| H A D | file.c | 900 u64 *lockstart, u64 *lockend, bool nowait, in lock_and_cleanup_extent_if_need() argument 943 *lockend = last_pos; in lock_and_cleanup_extent_if_need() 983 u64 lockstart, lockend; in btrfs_check_nocow_lock() local 994 lockend = round_up(pos + *write_bytes, in btrfs_check_nocow_lock() 998 if (!btrfs_try_lock_ordered_range(inode, lockstart, lockend, in btrfs_check_nocow_lock() 1004 btrfs_lock_and_flush_ordered_range(inode, lockstart, lockend, in btrfs_check_nocow_lock() 1009 while (cur_offset < lockend) { in btrfs_check_nocow_lock() 1010 u64 num_bytes = lockend - cur_offset + 1; in btrfs_check_nocow_lock() 1026 btrfs_unlock_extent(&inode->io_tree, lockstart, lockend, &cached_state); in btrfs_check_nocow_lock() 1212 u64 lockend; in copy_one_range() local [all …]
|
| H A D | ioctl.c | 4365 u64 start, lockend, count; in btrfs_ioctl_encoded_read() local 4368 lockend = start + BTRFS_MAX_UNCOMPRESSED - 1; in btrfs_ioctl_encoded_read() 4375 ret = btrfs_encoded_read_regular(&kiocb, &iter, start, lockend, in btrfs_ioctl_encoded_read() 4381 btrfs_unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_ioctl_encoded_read() 4525 u64 lockend; member 4579 btrfs_unlock_extent(io_tree, priv->start, priv->lockend, &priv->cached_state); in btrfs_uring_read_finished() 4606 u64 start, u64 lockend, in btrfs_uring_read_extent() argument 4645 priv->lockend = lockend; in btrfs_uring_read_extent() 4669 btrfs_unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_uring_read_extent() 4693 u64 start, lockend; in btrfs_uring_encoded_read() local [all …]
|
| H A D | inode.c | 9457 u64 lockend, in btrfs_encoded_read_inline() argument 9528 btrfs_unlock_extent(io_tree, start, lockend, cached_state); in btrfs_encoded_read_inline() 9645 u64 start, u64 lockend, in btrfs_encoded_read_regular() argument 9673 btrfs_unlock_extent(io_tree, start, lockend, cached_state); in btrfs_encoded_read_regular() 9718 u64 start, lockend; in btrfs_encoded_read() local 9739 lockend = start + BTRFS_MAX_UNCOMPRESSED - 1; in btrfs_encoded_read() 9745 start, lockend)) { in btrfs_encoded_read() 9750 if (!btrfs_try_lock_extent(io_tree, start, lockend, cached_state)) { in btrfs_encoded_read() 9756 lockend - start + 1); in btrfs_encoded_read() 9759 btrfs_unlock_extent(io_tree, start, lockend, cached_state); in btrfs_encoded_read() [all …]
|
| H A D | btrfs_inode.h | 644 u64 start, u64 lockend,
|