Searched refs:lockstart (Results 1 – 2 of 2) sorted by relevance
/linux/fs/btrfs/ |
H A D | direct-io.c | 33 static int lock_extent_direct(struct inode *inode, u64 lockstart, u64 lockend, in lock_extent_direct() argument 45 if (!try_lock_dio_extent(io_tree, lockstart, lockend, cached_state)) in lock_extent_direct() 48 lock_dio_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct() 53 if (!try_lock_extent(io_tree, lockstart, lockend, in lock_extent_direct() 59 lock_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct() 66 ordered = btrfs_lookup_ordered_range(BTRFS_I(inode), lockstart, in lock_extent_direct() 67 lockend - lockstart + 1); in lock_extent_direct() 78 lockstart, lockend))) in lock_extent_direct() 81 unlock_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct() 134 unlock_dio_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct() [all …]
|
H A D | file.c | 949 u64 *lockstart, u64 *lockend, bool nowait, in lock_and_cleanup_extent_if_need() argument 990 *lockstart = start_pos; in lock_and_cleanup_extent_if_need() 1029 u64 lockstart, lockend; in btrfs_check_nocow_lock() local 1039 lockstart = round_down(pos, fs_info->sectorsize); in btrfs_check_nocow_lock() 1042 num_bytes = lockend - lockstart + 1; in btrfs_check_nocow_lock() 1045 if (!btrfs_try_lock_ordered_range(inode, lockstart, lockend, in btrfs_check_nocow_lock() 1051 btrfs_lock_and_flush_ordered_range(inode, lockstart, lockend, in btrfs_check_nocow_lock() 1054 ret = can_nocow_extent(&inode->vfs_inode, lockstart, &num_bytes, in btrfs_check_nocow_lock() 1060 num_bytes - pos + lockstart); in btrfs_check_nocow_lock() 1061 unlock_extent(&inode->io_tree, lockstart, lockend, &cached_state); in btrfs_check_nocow_lock() [all …]
|