Searched refs:lockstart (Results 1 – 2 of 2) sorted by relevance
/linux-6.12.1/fs/btrfs/ |
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 …]
|
D | file.c | 993 u64 *lockstart, u64 *lockend, bool nowait, in lock_and_cleanup_extent_if_need() argument 1041 *lockstart = start_pos; in lock_and_cleanup_extent_if_need() 1081 u64 lockstart, lockend; in btrfs_check_nocow_lock() local 1091 lockstart = round_down(pos, fs_info->sectorsize); in btrfs_check_nocow_lock() 1094 num_bytes = lockend - lockstart + 1; in btrfs_check_nocow_lock() 1097 if (!btrfs_try_lock_ordered_range(inode, lockstart, lockend, in btrfs_check_nocow_lock() 1103 btrfs_lock_and_flush_ordered_range(inode, lockstart, lockend, in btrfs_check_nocow_lock() 1106 ret = can_nocow_extent(&inode->vfs_inode, lockstart, &num_bytes, in btrfs_check_nocow_lock() 1112 num_bytes - pos + lockstart); in btrfs_check_nocow_lock() 1113 unlock_extent(&inode->io_tree, lockstart, lockend, &cached_state); in btrfs_check_nocow_lock() [all …]
|