Home
last modified time | relevance | path

Searched refs:thresh (Results 1 – 10 of 10) sorted by relevance

/fs/btrfs/
Dasync-thread.c45 int thresh; member
68 if (wq->thresh == NO_THRESHOLD) in btrfs_workqueue_normal_congested()
71 return atomic_read(&wq->pending) > wq->thresh * 2; in btrfs_workqueue_normal_congested()
86 int limit_active, int thresh) in btrfs_alloc_workqueue() argument
96 if (thresh == 0) in btrfs_alloc_workqueue()
97 thresh = DFT_THRESHOLD; in btrfs_alloc_workqueue()
99 if (thresh < DFT_THRESHOLD) { in btrfs_alloc_workqueue()
101 ret->thresh = NO_THRESHOLD; in btrfs_alloc_workqueue()
109 ret->thresh = thresh; in btrfs_alloc_workqueue()
138 ret->thresh = NO_THRESHOLD; in btrfs_alloc_ordered_workqueue()
[all …]
Dsysfs.c901 int thresh; in btrfs_sinfo_bg_reclaim_threshold_store() local
904 ret = kstrtoint(buf, 10, &thresh); in btrfs_sinfo_bg_reclaim_threshold_store()
908 if (thresh < 0 || thresh > 100) in btrfs_sinfo_bg_reclaim_threshold_store()
911 WRITE_ONCE(space_info->bg_reclaim_threshold, thresh); in btrfs_sinfo_bg_reclaim_threshold_store()
1265 int thresh; in btrfs_bg_reclaim_threshold_store() local
1268 ret = kstrtoint(buf, 10, &thresh); in btrfs_bg_reclaim_threshold_store()
1273 if (thresh != 0 && (thresh > 100)) in btrfs_bg_reclaim_threshold_store()
1276 if (thresh != 0 && (thresh <= 50 || thresh > 100)) in btrfs_bg_reclaim_threshold_store()
1280 WRITE_ONCE(fs_info->bg_reclaim_threshold, thresh); in btrfs_bg_reclaim_threshold_store()
Dspace-info.c841 u64 thresh; in need_preemptive_reclaim() local
844 thresh = mult_perc(space_info->total_bytes, 90); in need_preemptive_reclaim()
850 global_rsv_size) >= thresh) in need_preemptive_reclaim()
903 thresh = calc_available_free_space(fs_info, space_info, in need_preemptive_reclaim()
908 thresh += space_info->total_bytes - used; in need_preemptive_reclaim()
909 thresh >>= space_info->clamp; in need_preemptive_reclaim()
944 return (used >= thresh && !btrfs_fs_closing(fs_info) && in need_preemptive_reclaim()
Dasync-thread.h33 int thresh);
Dblock-group.c1768 u64 thresh; in should_reclaim_block_group() local
1773 thresh = mult_perc(bg->length, reclaim_thresh); in should_reclaim_block_group()
1779 if (old_val < thresh) in should_reclaim_block_group()
1781 if (new_val >= thresh) in should_reclaim_block_group()
3824 u64 thresh; in should_alloc_chunk() local
3834 thresh = btrfs_super_total_bytes(fs_info->super_copy); in should_alloc_chunk()
3835 thresh = max_t(u64, SZ_64M, mult_perc(thresh, 1)); in should_alloc_chunk()
3837 if (sinfo->total_bytes - bytes_used < thresh) in should_alloc_chunk()
Dsuper.c2050 u64 thresh = 0; in btrfs_statfs() local
2115 thresh = SZ_4M; in btrfs_statfs()
2125 (total_free_meta < thresh || total_free_meta - thresh < block_rsv->size)) in btrfs_statfs()
Dextent_io.c1215 int thresh = 8192; in writepage_delalloc() local
1217 if (delalloc_to_write < thresh * 2) in writepage_delalloc()
1218 thresh = delalloc_to_write; in writepage_delalloc()
1220 thresh); in writepage_delalloc()
/fs/jfs/
Djfs_types.h132 u8 thresh; /* Alert Threshold (in percent) */ member
/fs/ocfs2/
Djournal.h249 int thresh);
Djournal.c471 int ocfs2_allocate_extend_trans(handle_t *handle, int thresh) in ocfs2_allocate_extend_trans() argument
478 trace_ocfs2_allocate_extend_trans(old_nblks, thresh); in ocfs2_allocate_extend_trans()
480 if (old_nblks < thresh) in ocfs2_allocate_extend_trans()