Searched refs:thresh (Results 1 – 11 of 11) sorted by relevance
/fs/btrfs/ |
D | async-thread.c | 46 int thresh; member 74 if (wq->normal->thresh == NO_THRESHOLD) in btrfs_workqueue_normal_congested() 77 return atomic_read(&wq->normal->pending) > wq->normal->thresh * 2; in btrfs_workqueue_normal_congested() 82 unsigned int flags, int limit_active, int thresh) in __btrfs_alloc_workqueue() argument 92 if (thresh == 0) in __btrfs_alloc_workqueue() 93 thresh = DFT_THRESHOLD; in __btrfs_alloc_workqueue() 95 if (thresh < DFT_THRESHOLD) { in __btrfs_alloc_workqueue() 97 ret->thresh = NO_THRESHOLD; in __btrfs_alloc_workqueue() 105 ret->thresh = thresh; in __btrfs_alloc_workqueue() 133 int thresh) in btrfs_alloc_workqueue() argument [all …]
|
D | space-info.c | 737 u64 thresh = div_factor_fine(space_info->total_bytes, 90); in need_preemptive_reclaim() local 742 global_rsv_size) >= thresh) in need_preemptive_reclaim() 795 thresh = calc_available_free_space(fs_info, space_info, in need_preemptive_reclaim() 800 thresh += space_info->total_bytes - used; in need_preemptive_reclaim() 801 thresh >>= space_info->clamp; in need_preemptive_reclaim() 836 return (used >= thresh && !btrfs_fs_closing(fs_info) && in need_preemptive_reclaim()
|
D | async-thread.h | 36 int thresh);
|
D | sysfs.c | 1045 int thresh; in btrfs_bg_reclaim_threshold_store() local 1048 ret = kstrtoint(buf, 10, &thresh); in btrfs_bg_reclaim_threshold_store() 1052 if (thresh != 0 && (thresh <= 50 || thresh > 100)) in btrfs_bg_reclaim_threshold_store() 1055 WRITE_ONCE(fs_info->bg_reclaim_threshold, thresh); in btrfs_bg_reclaim_threshold_store()
|
D | ioctl.c | 997 static int check_defrag_in_cache(struct inode *inode, u64 offset, u32 thresh) in check_defrag_in_cache() argument 1011 if (end - offset > thresh) in check_defrag_in_cache() 1015 thresh /= 2; in check_defrag_in_cache() 1016 end = count_range_bits(io_tree, &offset, offset + thresh, in check_defrag_in_cache() 1017 thresh, EXTENT_DELALLOC, 1); in check_defrag_in_cache() 1018 if (end >= thresh) in check_defrag_in_cache() 1032 u64 *off, u32 thresh) in find_new_extents() argument 1066 btrfs_file_extent_num_bytes(leaf, extent) < thresh && in find_new_extents() 1067 check_defrag_in_cache(inode, min_key.offset, thresh)) { in find_new_extents() 1141 static int should_defrag_range(struct inode *inode, u64 start, u32 thresh, in should_defrag_range() argument [all …]
|
D | super.c | 2292 u64 thresh = 0; in btrfs_statfs() local 2357 thresh = SZ_4M; in btrfs_statfs() 2367 (total_free_meta < thresh || total_free_meta - thresh < block_rsv->size)) in btrfs_statfs()
|
D | block-group.c | 3400 u64 thresh; in should_alloc_chunk() local 3410 thresh = btrfs_super_total_bytes(fs_info->super_copy); in should_alloc_chunk() 3411 thresh = max_t(u64, SZ_64M, div_factor_fine(thresh, 1)); in should_alloc_chunk() 3413 if (sinfo->total_bytes - bytes_used < thresh) in should_alloc_chunk()
|
D | extent_io.c | 3818 int thresh = 8192; in writepage_delalloc() local 3820 if (delalloc_to_write < thresh * 2) in writepage_delalloc() 3821 thresh = delalloc_to_write; in writepage_delalloc() 3823 thresh); in writepage_delalloc()
|
/fs/jfs/ |
D | jfs_types.h | 132 u8 thresh; /* Alert Threshold (in percent) */ member
|
/fs/ocfs2/ |
D | journal.h | 246 int thresh);
|
D | journal.c | 456 int ocfs2_allocate_extend_trans(handle_t *handle, int thresh) in ocfs2_allocate_extend_trans() argument 463 trace_ocfs2_allocate_extend_trans(old_nblks, thresh); in ocfs2_allocate_extend_trans() 465 if (old_nblks < thresh) in ocfs2_allocate_extend_trans()
|