/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | file.c | 1408 u64 *lockstart, u64 *lockend, in lock_and_cleanup_extent_if_need() 1443 *lockstart = start_pos; in lock_and_cleanup_extent_if_need() 1475 u64 lockstart, lockend; in check_can_nocow() local 1485 lockstart = round_down(pos, fs_info->sectorsize); in check_can_nocow() 1488 num_bytes = lockend - lockstart + 1; in check_can_nocow() 1493 if (!try_lock_extent(&inode->io_tree, lockstart, lockend)) in check_can_nocow() 1496 ordered = btrfs_lookup_ordered_range(inode, lockstart, in check_can_nocow() 1504 btrfs_lock_and_flush_ordered_range(inode, lockstart, in check_can_nocow() 1508 ret = can_nocow_extent(&inode->vfs_inode, lockstart, &num_bytes, in check_can_nocow() 1516 num_bytes - pos + lockstart); in check_can_nocow() 1405 lock_and_cleanup_extent_if_need(struct btrfs_inode *inode, struct page **pages, size_t num_pages, loff_t pos, size_t write_bytes, u64 *lockstart, u64 *lockend, struct extent_state **cached_state) lock_and_cleanup_extent_if_need() argument 1570 u64 lockstart; btrfs_buffered_write() local 2475 btrfs_punch_hole_lock_range(struct inode *inode, const u64 lockstart, const u64 lockend, struct extent_state **cached_state) btrfs_punch_hole_lock_range() argument 2844 u64 lockstart; btrfs_punch_hole() local 3237 const u64 lockstart = alloc_start; btrfs_zero_range() local 3495 u64 lockstart; find_desired_extent() local [all...] |
H A D | inode.c | 7161 static int lock_extent_direct(struct inode *inode, u64 lockstart, u64 lockend, in lock_extent_direct() argument 7168 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in lock_extent_direct() 7175 ordered = btrfs_lookup_ordered_range(BTRFS_I(inode), lockstart, in lock_extent_direct() 7176 lockend - lockstart + 1); in lock_extent_direct() 7187 lockstart, lockend))) in lock_extent_direct() 7190 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in lock_extent_direct() 7391 u64 lockstart, lockend; in btrfs_dio_iomap_begin() local 7411 lockstart = start; in btrfs_dio_iomap_begin() 7452 if (lock_extent_direct(inode, lockstart, lockend, &cached_state, write)) { in btrfs_dio_iomap_begin() 7510 lockstart in btrfs_dio_iomap_begin() [all...] |
/kernel/linux/linux-6.6/fs/btrfs/ |
H A D | file.c | 979 u64 *lockstart, u64 *lockend, bool nowait, in lock_and_cleanup_extent_if_need() 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, locken in btrfs_check_nocow_lock() 976 lock_and_cleanup_extent_if_need(struct btrfs_inode *inode, struct page **pages, size_t num_pages, loff_t pos, size_t write_bytes, u64 *lockstart, u64 *lockend, bool nowait, struct extent_state **cached_state) lock_and_cleanup_extent_if_need() argument 1185 u64 lockstart; btrfs_buffered_write() local 2191 btrfs_punch_hole_lock_range(struct inode *inode, const u64 lockstart, const u64 lockend, struct extent_state **cached_state) btrfs_punch_hole_lock_range() argument 2230 btrfs_assert_inode_range_clean(BTRFS_I(inode), lockstart, lockend); btrfs_punch_hole_lock_range() local 2594 u64 lockstart; btrfs_punch_hole() local 2982 const u64 lockstart = alloc_start; btrfs_zero_range() local 3467 u64 lockstart; find_desired_extent() local [all...] |
H A D | extent_io.c | 2922 u64 lockstart; in extent_fiemap() local 2934 lockstart = round_down(start, inode->root->fs_info->sectorsize); in extent_fiemap() 2936 prev_extent_end = lockstart; in extent_fiemap() 2939 lock_extent(&inode->io_tree, lockstart, lockend, &cached_state); in extent_fiemap() 2947 ret = fiemap_search_slot(inode, path, lockstart); in extent_fiemap() 2982 if (extent_end <= lockstart) in extent_fiemap() 3131 unlock_extent(&inode->io_tree, lockstart, lockend, &cached_state); in extent_fiemap()
|
H A D | inode.c | 7152 static int lock_extent_direct(struct inode *inode, u64 lockstart, u64 lockend, in lock_extent_direct() argument 7164 if (!try_lock_extent(io_tree, lockstart, lockend, in lock_extent_direct() 7168 lock_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct() 7175 ordered = btrfs_lookup_ordered_range(BTRFS_I(inode), lockstart, in lock_extent_direct() 7176 lockend - lockstart + 1); in lock_extent_direct() 7187 lockstart, lockend))) in lock_extent_direct() 7190 unlock_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct() 7442 u64 lockstart, lockend; in btrfs_dio_iomap_begin() local 7470 lockstart = start; in btrfs_dio_iomap_begin() 7495 lockstart, locken in btrfs_dio_iomap_begin() [all...] |