Home
last modified time | relevance | path

Searched refs:lockstart (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/fs/btrfs/
H A Dfile.c979 u64 *lockstart, u64 *lockend, bool nowait, in lock_and_cleanup_extent_if_need() argument
1027 *lockstart = start_pos; in lock_and_cleanup_extent_if_need()
1067 u64 lockstart, lockend; in btrfs_check_nocow_lock() local
1077 lockstart = round_down(pos, fs_info->sectorsize); in btrfs_check_nocow_lock()
1080 num_bytes = lockend - lockstart + 1; in btrfs_check_nocow_lock()
1083 if (!btrfs_try_lock_ordered_range(inode, lockstart, lockend, in btrfs_check_nocow_lock()
1089 btrfs_lock_and_flush_ordered_range(inode, lockstart, lockend, in btrfs_check_nocow_lock()
1092 ret = can_nocow_extent(&inode->vfs_inode, lockstart, &num_bytes, in btrfs_check_nocow_lock()
1098 num_bytes - pos + lockstart); in btrfs_check_nocow_lock()
1099 unlock_extent(&inode->io_tree, lockstart, lockend, &cached_state); in btrfs_check_nocow_lock()
[all …]
H A Dinode.c7172 static int lock_extent_direct(struct inode *inode, u64 lockstart, u64 lockend, in lock_extent_direct() argument
7184 if (!try_lock_extent(io_tree, lockstart, lockend, in lock_extent_direct()
7188 lock_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct()
7195 ordered = btrfs_lookup_ordered_range(BTRFS_I(inode), lockstart, in lock_extent_direct()
7196 lockend - lockstart + 1); in lock_extent_direct()
7207 lockstart, lockend))) in lock_extent_direct()
7210 unlock_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct()
7462 u64 lockstart, lockend; in btrfs_dio_iomap_begin() local
7490 lockstart = start; in btrfs_dio_iomap_begin()
7515 lockstart, lockend)) in btrfs_dio_iomap_begin()
[all …]