Home
last modified time | relevance | path

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

/fs/btrfs/
Dasync-thread.c46 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 …]
Dasync-thread.h36 int thresh);
Dblock-group.c3068 u64 thresh; in should_alloc_chunk() local
3078 thresh = btrfs_super_total_bytes(fs_info->super_copy); in should_alloc_chunk()
3079 thresh = max_t(u64, SZ_64M, div_factor_fine(thresh, 1)); in should_alloc_chunk()
3081 if (sinfo->total_bytes - bytes_used < thresh) in should_alloc_chunk()
3246 u64 thresh; in check_system_chunk() local
3264 thresh = btrfs_calc_metadata_size(fs_info, num_devs) + in check_system_chunk()
3267 if (left < thresh && btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in check_system_chunk()
3269 left, thresh, type); in check_system_chunk()
3273 if (left < thresh) { in check_system_chunk()
3288 thresh, BTRFS_RESERVE_NO_FLUSH); in check_system_chunk()
[all …]
Dioctl.c1066 static int check_defrag_in_cache(struct inode *inode, u64 offset, u32 thresh) in check_defrag_in_cache() argument
1080 if (end - offset > thresh) in check_defrag_in_cache()
1084 thresh /= 2; in check_defrag_in_cache()
1085 end = count_range_bits(io_tree, &offset, offset + thresh, in check_defrag_in_cache()
1086 thresh, EXTENT_DELALLOC, 1); in check_defrag_in_cache()
1087 if (end >= thresh) in check_defrag_in_cache()
1101 u64 *off, u32 thresh) in find_new_extents() argument
1135 btrfs_file_extent_num_bytes(leaf, extent) < thresh && in find_new_extents()
1136 check_defrag_in_cache(inode, min_key.offset, thresh)) { in find_new_extents()
1210 static int should_defrag_range(struct inode *inode, u64 start, u32 thresh, in should_defrag_range() argument
[all …]
Dspace-info.c805 u64 thresh = div_factor_fine(space_info->total_bytes, 98); in need_do_async_reclaim() local
808 if ((space_info->bytes_used + space_info->bytes_reserved) >= thresh) in need_do_async_reclaim()
814 return (used >= thresh && !btrfs_fs_closing(fs_info) && in need_do_async_reclaim()
Dsuper.c2195 u64 thresh = 0; in btrfs_statfs() local
2260 thresh = SZ_4M; in btrfs_statfs()
2270 (total_free_meta < thresh || total_free_meta - thresh < block_rsv->size)) in btrfs_statfs()
Dextent_io.c3422 int thresh = 8192; in writepage_delalloc() local
3424 if (delalloc_to_write < thresh * 2) in writepage_delalloc()
3425 thresh = delalloc_to_write; in writepage_delalloc()
3427 thresh); in writepage_delalloc()
/fs/jfs/
Djfs_types.h132 u8 thresh; /* Alert Threshold (in percent) */ member
/fs/ocfs2/
Djournal.h248 int thresh);
Djournal.c458 int ocfs2_allocate_extend_trans(handle_t *handle, int thresh) in ocfs2_allocate_extend_trans() argument
465 trace_ocfs2_allocate_extend_trans(old_nblks, thresh); in ocfs2_allocate_extend_trans()
467 if (old_nblks < thresh) in ocfs2_allocate_extend_trans()