/kernel/linux/linux-5.10/fs/ext4/ |
H A D | move_extent.c | 84 * @unwritten: extents expected to be unwritten 91 int unwritten, int *err) in mext_check_coverage() 102 if (unwritten != ext4_ext_is_unwritten(ext)) in mext_check_coverage() 238 * @unwritten: orig extent is unwritten or not 250 int block_len_in_page, int unwritten, int *err) in move_extent_per_page() 308 * If orig extent was unwritten it can become initialized in move_extent_per_page() 314 if (unwritten) { in move_extent_per_page() 318 unwritten in move_extent_per_page() 90 mext_check_coverage(struct inode *inode, ext4_lblk_t from, ext4_lblk_t count, int unwritten, int *err) mext_check_coverage() argument 247 move_extent_per_page(struct file *o_filp, struct inode *donor_inode, pgoff_t orig_page_offset, pgoff_t donor_page_offset, int data_offset_in_page, int block_len_in_page, int unwritten, int *err) move_extent_per_page() argument 624 int unwritten, cur_len; ext4_move_extents() local [all...] |
H A D | page-io.c | 171 * Check a range of space and convert unwritten extents to written. Note that 192 "failed to convert unwritten extents to written " in ext4_end_io_end() 247 struct list_head unwritten; in ext4_do_flush_completed_IO() local 254 list_replace_init(head, &unwritten); in ext4_do_flush_completed_IO() 257 while (!list_empty(&unwritten)) { in ext4_do_flush_completed_IO() 258 io_end = list_entry(unwritten.next, ext4_io_end_t, list); in ext4_do_flush_completed_IO() 270 * work on completed IO, to convert unwritten extents to extents
|
H A D | extents.c | 43 #define EXT4_EXT_MARK_UNWRIT1 0x2 /* mark first half unwritten */ 44 #define EXT4_EXT_MARK_UNWRIT2 0x4 /* mark second half unwritten */ 312 int unwritten = ext4_ext_is_unwritten(path[path->p_depth].p_ext); in ext4_force_split_extent_at() local 318 return ext4_split_extent_at(handle, inode, ppath, lblk, unwritten ? in ext4_force_split_extent_at() 1808 int merge_done = 0, unwritten; in ext4_ext_try_to_merge_right() local 1818 unwritten = ext4_ext_is_unwritten(ex); in ext4_ext_try_to_merge_right() 1821 if (unwritten) in ext4_ext_try_to_merge_right() 1979 int mb_flags = 0, unwritten; in ext4_ext_insert_extent() local 2031 unwritten = ext4_ext_is_unwritten(ex); in ext4_ext_insert_extent() 2034 if (unwritten) in ext4_ext_insert_extent() 2607 unsigned unwritten = 0; ext4_ext_rm_leaf() local 3342 int unwritten; ext4_split_extent() local 5620 ext4_swap_extents(handle_t *handle, struct inode *inode1, struct inode *inode2, ext4_lblk_t lblk1, ext4_lblk_t lblk2, ext4_lblk_t count, int unwritten, int *erp) ext4_swap_extents() argument 5890 ext4_ext_replay_update_ex(struct inode *inode, ext4_lblk_t start, int len, int unwritten, ext4_fsblk_t pblk) ext4_ext_replay_update_ex() argument [all...] |
H A D | ext4.h | 218 * For converting unwritten extents on a work queue. 'handle' is used for 228 unsigned int flag; /* unwritten or not */ 635 /* Allocate any needed blocks and/or convert an unwritten 638 /* Request the creation of an unwritten extent */ 646 unwritten extents if not allocated, split the unwritten 660 /* Convert written extents to unwritten */ 1136 * Completed IOs that need unwritten extents handling and have 3610 int len, int unwritten, ext4_fsblk_t pblk); 3670 /* For ioend & aio unwritten conversio [all...] |
/kernel/linux/linux-6.6/fs/ext4/ |
H A D | move_extent.c | 84 * @unwritten: extents expected to be unwritten 91 int unwritten, int *err) in mext_check_coverage() 102 if (unwritten != ext4_ext_is_unwritten(ext)) in mext_check_coverage() 244 * @unwritten: orig extent is unwritten or not 256 int block_len_in_page, int unwritten, int *err) in move_extent_per_page() 314 * If orig extent was unwritten it can become initialized in move_extent_per_page() 325 if (unwritten) { in move_extent_per_page() 329 unwritten in move_extent_per_page() 90 mext_check_coverage(struct inode *inode, ext4_lblk_t from, ext4_lblk_t count, int unwritten, int *err) mext_check_coverage() argument 253 move_extent_per_page(struct file *o_filp, struct inode *donor_inode, pgoff_t orig_page_offset, pgoff_t donor_page_offset, int data_offset_in_page, int block_len_in_page, int unwritten, int *err) move_extent_per_page() argument 628 int unwritten, cur_len; ext4_move_extents() local [all...] |
H A D | file.c | 188 * Ext4 utilizes unwritten extents when hole-filling during direct IO, and they 192 * threads are at work on the same unwritten block, they must be synchronized 218 loff_t pos, loff_t len, bool *unwritten) in ext4_overwrite_io() 237 * check m_flags to distinguish the unwritten extents. in ext4_overwrite_io() 239 *unwritten = !(map.m_flags & EXT4_MAP_MAPPED); in ext4_overwrite_io() 388 * zeroed/unwritten extents if this is possible; thus we won't leave in ext4_dio_write_end_io() 415 * initialized blocks and unwritten blocks. For overwrite unwritten blocks 423 bool *unwritten, int *dio_flags) in ext4_dio_write_checks() 442 overwrite = ext4_overwrite_io(inode, offset, count, unwritten); in ext4_dio_write_checks() 217 ext4_overwrite_io(struct inode *inode, loff_t pos, loff_t len, bool *unwritten) ext4_overwrite_io() argument 421 ext4_dio_write_checks(struct kiocb *iocb, struct iov_iter *from, bool *ilock_shared, bool *extend, bool *unwritten, int *dio_flags) ext4_dio_write_checks() argument 506 bool extend = false, unwritten = false; ext4_dio_write_iter() local [all...] |
H A D | page-io.c | 168 * Check a range of space and convert unwritten extents to written. Note that 189 "failed to convert unwritten extents to written " in ext4_end_io_end() 244 struct list_head unwritten; in ext4_do_flush_completed_IO() local 251 list_replace_init(head, &unwritten); in ext4_do_flush_completed_IO() 254 while (!list_empty(&unwritten)) { in ext4_do_flush_completed_IO() 255 io_end = list_entry(unwritten.next, ext4_io_end_t, list); in ext4_do_flush_completed_IO() 267 * work on completed IO, to convert unwritten extents to extents
|
H A D | extents.c | 43 #define EXT4_EXT_MARK_UNWRIT1 0x2 /* mark first half unwritten */ 44 #define EXT4_EXT_MARK_UNWRIT2 0x4 /* mark second half unwritten */ 332 int unwritten = ext4_ext_is_unwritten(path[path->p_depth].p_ext); in ext4_force_split_extent_at() local 338 return ext4_split_extent_at(handle, inode, ppath, lblk, unwritten ? in ext4_force_split_extent_at() 1807 int merge_done = 0, unwritten; in ext4_ext_try_to_merge_right() local 1817 unwritten = ext4_ext_is_unwritten(ex); in ext4_ext_try_to_merge_right() 1820 if (unwritten) in ext4_ext_try_to_merge_right() 1978 int mb_flags = 0, unwritten; in ext4_ext_insert_extent() local 2030 unwritten = ext4_ext_is_unwritten(ex); in ext4_ext_insert_extent() 2033 if (unwritten) in ext4_ext_insert_extent() 2579 unsigned unwritten = 0; ext4_ext_rm_leaf() local 3312 int unwritten; ext4_split_extent() local 5612 ext4_swap_extents(handle_t *handle, struct inode *inode1, struct inode *inode2, ext4_lblk_t lblk1, ext4_lblk_t lblk2, ext4_lblk_t count, int unwritten, int *erp) ext4_swap_extents() argument 5875 ext4_ext_replay_update_ex(struct inode *inode, ext4_lblk_t start, int len, int unwritten, ext4_fsblk_t pblk) ext4_ext_replay_update_ex() argument [all...] |
H A D | ext4.h | 285 * For converting unwritten extents on a work queue. 'handle' is used for 295 unsigned int flag; /* unwritten or not */ 682 /* Allocate any needed blocks and/or convert an unwritten 685 /* Request the creation of an unwritten extent */ 693 unwritten extents if not allocated, split the unwritten 707 /* Convert written extents to unwritten */ 1132 * Completed IOs that need unwritten extents handling and have 3714 int len, int unwritten, ext4_fsblk_t pblk); 3782 /* For ioend & aio unwritten conversio [all...] |
/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
H A D | xfs_rmap.c | 420 /* Make sure the unwritten flag matches. */ in xfs_rmap_free_check_owner() 483 bool unwritten, in xfs_rmap_unmap() 499 if (unwritten) in xfs_rmap_unmap() 502 unwritten, oinfo); in xfs_rmap_unmap() 682 unwritten, oinfo); in xfs_rmap_unmap() 719 * the unwritten, attr_fork, and bmbt flags. The startblock and 755 bool unwritten, in xfs_rmap_map() 774 if (unwritten) in xfs_rmap_map() 777 unwritten, oinfo); in xfs_rmap_map() 936 unwritten, oinf in xfs_rmap_map() 479 xfs_rmap_unmap( struct xfs_btree_cur *cur, xfs_agblock_t bno, xfs_extlen_t len, bool unwritten, const struct xfs_owner_info *oinfo) xfs_rmap_unmap() argument 751 xfs_rmap_map( struct xfs_btree_cur *cur, xfs_agblock_t bno, xfs_extlen_t len, bool unwritten, const struct xfs_owner_info *oinfo) xfs_rmap_map() argument 987 xfs_rmap_convert( struct xfs_btree_cur *cur, xfs_agblock_t bno, xfs_extlen_t len, bool unwritten, const struct xfs_owner_info *oinfo) xfs_rmap_convert() argument 1483 xfs_rmap_convert_shared( struct xfs_btree_cur *cur, xfs_agblock_t bno, xfs_extlen_t len, bool unwritten, const struct xfs_owner_info *oinfo) xfs_rmap_convert_shared() argument 1907 xfs_rmap_unmap_shared( struct xfs_btree_cur *cur, xfs_agblock_t bno, xfs_extlen_t len, bool unwritten, const struct xfs_owner_info *oinfo) xfs_rmap_unmap_shared() argument 2094 xfs_rmap_map_shared( struct xfs_btree_cur *cur, xfs_agblock_t bno, xfs_extlen_t len, bool unwritten, const struct xfs_owner_info *oinfo) xfs_rmap_map_shared() argument 2371 bool unwritten; xfs_rmap_finish_one() local [all...] |
/kernel/linux/linux-6.6/fs/xfs/libxfs/ |
H A D | xfs_rmap.c | 528 /* Make sure the unwritten flag matches. */ in xfs_rmap_free_check_owner() 591 bool unwritten, in xfs_rmap_unmap() 607 if (unwritten) in xfs_rmap_unmap() 610 unwritten, oinfo); in xfs_rmap_unmap() 783 unwritten, oinfo); in xfs_rmap_unmap() 820 * the unwritten, attr_fork, and bmbt flags. The startblock and 856 bool unwritten, in xfs_rmap_map() 875 if (unwritten) in xfs_rmap_map() 878 unwritten, oinfo); in xfs_rmap_map() 1030 unwritten, oinf in xfs_rmap_map() 587 xfs_rmap_unmap( struct xfs_btree_cur *cur, xfs_agblock_t bno, xfs_extlen_t len, bool unwritten, const struct xfs_owner_info *oinfo) xfs_rmap_unmap() argument 852 xfs_rmap_map( struct xfs_btree_cur *cur, xfs_agblock_t bno, xfs_extlen_t len, bool unwritten, const struct xfs_owner_info *oinfo) xfs_rmap_map() argument 1081 xfs_rmap_convert( struct xfs_btree_cur *cur, xfs_agblock_t bno, xfs_extlen_t len, bool unwritten, const struct xfs_owner_info *oinfo) xfs_rmap_convert() argument 1570 xfs_rmap_convert_shared( struct xfs_btree_cur *cur, xfs_agblock_t bno, xfs_extlen_t len, bool unwritten, const struct xfs_owner_info *oinfo) xfs_rmap_convert_shared() argument 1994 xfs_rmap_unmap_shared( struct xfs_btree_cur *cur, xfs_agblock_t bno, xfs_extlen_t len, bool unwritten, const struct xfs_owner_info *oinfo) xfs_rmap_unmap_shared() argument 2181 xfs_rmap_map_shared( struct xfs_btree_cur *cur, xfs_agblock_t bno, xfs_extlen_t len, bool unwritten, const struct xfs_owner_info *oinfo) xfs_rmap_map_shared() argument 2450 bool unwritten; xfs_rmap_finish_one() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
H A D | i915_gem.c | 358 unsigned long unwritten; in gtt_user_read() local 362 unwritten = __copy_to_user_inatomic(user_data, in gtt_user_read() 366 if (unwritten) { in gtt_user_read() 368 unwritten = copy_to_user(user_data, in gtt_user_read() 373 return unwritten; in gtt_user_read() 542 unsigned long unwritten; in ggtt_write() local 546 unwritten = __copy_from_user_inatomic_nocache((void __force *)vaddr + offset, in ggtt_write() 549 if (unwritten) { in ggtt_write() 551 unwritten = copy_from_user((void __force *)vaddr + offset, in ggtt_write() 556 return unwritten; in ggtt_write() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/ |
H A D | i915_gem.c | 286 unsigned long unwritten; in gtt_user_read() local 290 unwritten = __copy_to_user_inatomic(user_data, in gtt_user_read() 294 if (unwritten) { in gtt_user_read() 296 unwritten = copy_to_user(user_data, in gtt_user_read() 301 return unwritten; in gtt_user_read() 521 unsigned long unwritten; in ggtt_write() local 525 unwritten = __copy_from_user_inatomic_nocache((void __force *)vaddr + offset, in ggtt_write() 528 if (unwritten) { in ggtt_write() 530 unwritten = copy_from_user((void __force *)vaddr + offset, in ggtt_write() 535 return unwritten; in ggtt_write() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/qxl/ |
H A D | qxl_ioctl.c | 151 int unwritten; in qxl_process_single_command() local 188 unwritten = __copy_from_user_inatomic_nocache in qxl_process_single_command() 199 if (unwritten) { in qxl_process_single_command() 200 DRM_ERROR("got unwritten %d\n", unwritten); in qxl_process_single_command()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_shmem.c | 374 unsigned int len, unwritten; in shmem_pwrite() local 400 unwritten = __copy_from_user_inatomic(vaddr + pg, in shmem_pwrite() 406 offset, len, len - unwritten, in shmem_pwrite() 412 if (unwritten) in shmem_pwrite()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_shmem.c | 464 unsigned int len, unwritten; in shmem_pwrite() local 489 unwritten = __copy_from_user_inatomic(vaddr + pg, in shmem_pwrite() 495 len - unwritten, page, data); in shmem_pwrite() 500 if (unwritten) in shmem_pwrite()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/qxl/ |
H A D | qxl_ioctl.c | 149 int unwritten; in qxl_process_single_command() local 185 unwritten = __copy_from_user_inatomic_nocache in qxl_process_single_command() 196 if (unwritten) { in qxl_process_single_command() 197 DRM_ERROR("got unwritten %d\n", unwritten); in qxl_process_single_command()
|
/kernel/linux/linux-5.10/drivers/block/zram/ |
H A D | zram_drv.c | 1604 unsigned int unwritten = bvec.bv_len; in __zram_make_request() local 1608 unwritten); in __zram_make_request() 1616 unwritten -= bv.bv_len; in __zram_make_request() 1619 } while (unwritten); in __zram_make_request()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | buffer_head.h | 132 BUFFER_FNS(Unwritten, unwritten)
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | buffer_head.h | 134 BUFFER_FNS(Unwritten, unwritten)
|
/kernel/linux/linux-5.10/fs/xfs/ |
H A D | xfs_trace.h | 2547 xfs_agblock_t agbno, xfs_extlen_t len, bool unwritten, 2549 TP_ARGS(mp, agno, agbno, len, unwritten, oinfo), 2567 if (unwritten) 2582 xfs_agblock_t agbno, xfs_extlen_t len, bool unwritten, \ 2584 TP_ARGS(mp, agno, agbno, len, unwritten, oinfo))
|
/kernel/linux/linux-6.6/fs/xfs/ |
H A D | xfs_trace.h | 2726 xfs_agblock_t agbno, xfs_extlen_t len, bool unwritten, 2728 TP_ARGS(mp, agno, agbno, len, unwritten, oinfo), 2746 if (unwritten) 2761 xfs_agblock_t agbno, xfs_extlen_t len, bool unwritten, \ 2763 TP_ARGS(mp, agno, agbno, len, unwritten, oinfo))
|