| /linux/fs/btrfs/ |
| H A D | direct-io.c | 36 static int lock_extent_direct(struct inode *inode, u64 lockstart, u64 lockend, in lock_extent_direct() argument 48 if (!btrfs_try_lock_dio_extent(io_tree, lockstart, lockend, cached_state)) in lock_extent_direct() 51 btrfs_lock_dio_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct() 56 if (!btrfs_try_lock_extent(io_tree, lockstart, lockend, in lock_extent_direct() 62 btrfs_lock_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct() 70 lockend - lockstart + 1); in lock_extent_direct() 81 lockstart, lockend))) in lock_extent_direct() 84 btrfs_unlock_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct() 137 btrfs_unlock_dio_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct() 378 u64 lockstart, lockend; in btrfs_dio_iomap_begin() local [all …]
|
| H A D | file.c | 887 u64 *lockstart, u64 *lockend, bool nowait, in lock_and_cleanup_extent() argument 927 *lockend = last_pos; in lock_and_cleanup_extent() 965 u64 lockstart, lockend; in btrfs_check_nocow_lock() local 976 lockend = round_up(pos + *write_bytes, in btrfs_check_nocow_lock() 980 if (!btrfs_try_lock_ordered_range(inode, lockstart, lockend, in btrfs_check_nocow_lock() 986 btrfs_lock_and_flush_ordered_range(inode, lockstart, lockend, in btrfs_check_nocow_lock() 991 while (cur_offset < lockend) { in btrfs_check_nocow_lock() 992 u64 num_bytes = lockend - cur_offset + 1; in btrfs_check_nocow_lock() 1008 btrfs_unlock_extent(&inode->io_tree, lockstart, lockend, &cached_state); in btrfs_check_nocow_lock() 1193 u64 lockend; in copy_one_range() local [all …]
|
| H A D | ioctl.c | 4407 u64 start, lockend, count; in btrfs_ioctl_encoded_read() local 4410 lockend = start + BTRFS_MAX_UNCOMPRESSED - 1; in btrfs_ioctl_encoded_read() 4417 ret = btrfs_encoded_read_regular(&kiocb, &iter, start, lockend, in btrfs_ioctl_encoded_read() 4423 btrfs_unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_ioctl_encoded_read() 4567 u64 lockend; member 4621 btrfs_unlock_extent(io_tree, priv->start, priv->lockend, &priv->cached_state); in btrfs_uring_read_finished() 4648 u64 start, u64 lockend, in btrfs_uring_read_extent() argument 4687 priv->lockend = lockend; in btrfs_uring_read_extent() 4711 btrfs_unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_uring_read_extent() 4735 u64 start, lockend; in btrfs_uring_encoded_read() local [all …]
|
| H A D | inode.c | 9482 u64 lockend, in btrfs_encoded_read_inline() argument 9553 btrfs_unlock_extent(io_tree, start, lockend, cached_state); in btrfs_encoded_read_inline() 9670 u64 start, u64 lockend, in btrfs_encoded_read_regular() argument 9698 btrfs_unlock_extent(io_tree, start, lockend, cached_state); in btrfs_encoded_read_regular() 9743 u64 start, lockend; in btrfs_encoded_read() local 9764 lockend = start + BTRFS_MAX_UNCOMPRESSED - 1; in btrfs_encoded_read() 9770 start, lockend)) { in btrfs_encoded_read() 9775 if (!btrfs_try_lock_extent(io_tree, start, lockend, cached_state)) { in btrfs_encoded_read() 9781 lockend - start + 1); in btrfs_encoded_read() 9784 btrfs_unlock_extent(io_tree, start, lockend, cached_state); in btrfs_encoded_read() [all …]
|
| H A D | btrfs_inode.h | 614 u64 start, u64 lockend,
|