Searched refs:thresh (Results 1 – 10 of 10) sorted by relevance
/fs/btrfs/ |
D | async-thread.c | 57 int thresh; member 97 if (wq->normal->thresh == NO_THRESHOLD) in btrfs_workqueue_normal_congested() 100 return atomic_read(&wq->normal->pending) > wq->normal->thresh * 2; in btrfs_workqueue_normal_congested() 128 unsigned int flags, int limit_active, int thresh) in __btrfs_alloc_workqueue() argument 138 if (thresh == 0) in __btrfs_alloc_workqueue() 139 thresh = DFT_THRESHOLD; in __btrfs_alloc_workqueue() 141 if (thresh < DFT_THRESHOLD) { in __btrfs_alloc_workqueue() 143 ret->thresh = NO_THRESHOLD; in __btrfs_alloc_workqueue() 151 ret->thresh = thresh; in __btrfs_alloc_workqueue() 181 int thresh) in btrfs_alloc_workqueue() argument [all …]
|
D | async-thread.h | 75 int thresh);
|
D | ioctl.c | 888 static int check_defrag_in_cache(struct inode *inode, u64 offset, u32 thresh) in check_defrag_in_cache() argument 902 if (end - offset > thresh) in check_defrag_in_cache() 906 thresh /= 2; in check_defrag_in_cache() 907 end = count_range_bits(io_tree, &offset, offset + thresh, in check_defrag_in_cache() 908 thresh, EXTENT_DELALLOC, 1); in check_defrag_in_cache() 909 if (end >= thresh) in check_defrag_in_cache() 923 u64 *off, u32 thresh) in find_new_extents() argument 957 btrfs_file_extent_num_bytes(leaf, extent) < thresh && in find_new_extents() 958 check_defrag_in_cache(inode, min_key.offset, thresh)) { in find_new_extents() 1032 static int should_defrag_range(struct inode *inode, u64 start, u32 thresh, in should_defrag_range() argument [all …]
|
D | extent-tree.c | 4510 u64 thresh; in should_alloc_chunk() local 4528 thresh = btrfs_super_total_bytes(fs_info->super_copy); in should_alloc_chunk() 4529 thresh = max_t(u64, SZ_64M, div_factor_fine(thresh, 1)); in should_alloc_chunk() 4531 if (sinfo->total_bytes - bytes_used < thresh) in should_alloc_chunk() 4567 u64 thresh; in check_system_chunk() local 4585 thresh = btrfs_calc_trunc_metadata_size(fs_info, num_devs) + in check_system_chunk() 4588 if (left < thresh && btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in check_system_chunk() 4590 left, thresh, type); in check_system_chunk() 4594 if (left < thresh) { in check_system_chunk() 4609 thresh, BTRFS_RESERVE_NO_FLUSH); in check_system_chunk() [all …]
|
D | super.c | 2044 u64 thresh = 0; in btrfs_statfs() local 2117 thresh = 4 * 1024 * 1024; in btrfs_statfs() 2127 total_free_meta - thresh < block_rsv->size) in btrfs_statfs()
|
D | extent_io.c | 3277 int thresh = 8192; in writepage_delalloc() local 3279 if (delalloc_to_write < thresh * 2) in writepage_delalloc() 3280 thresh = delalloc_to_write; in writepage_delalloc() 3282 thresh); in writepage_delalloc()
|
/fs/jfs/ |
D | jfs_types.h | 145 u8 thresh; /* Alert Threshold (in percent) */ member
|
/fs/ocfs2/ |
D | journal.h | 262 int thresh);
|
D | journal.c | 472 int ocfs2_allocate_extend_trans(handle_t *handle, int thresh) in ocfs2_allocate_extend_trans() argument 479 trace_ocfs2_allocate_extend_trans(old_nblks, thresh); in ocfs2_allocate_extend_trans() 481 if (old_nblks < thresh) in ocfs2_allocate_extend_trans()
|
/fs/ext4/ |
D | resize.c | 412 static int extend_or_restart_transaction(handle_t *handle, int thresh) in extend_or_restart_transaction() argument 416 if (ext4_handle_has_enough_credits(handle, thresh)) in extend_or_restart_transaction()
|