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 | 902 static int check_defrag_in_cache(struct inode *inode, u64 offset, u32 thresh) in check_defrag_in_cache() argument 916 if (end - offset > thresh) in check_defrag_in_cache() 920 thresh /= 2; in check_defrag_in_cache() 921 end = count_range_bits(io_tree, &offset, offset + thresh, in check_defrag_in_cache() 922 thresh, EXTENT_DELALLOC, 1); in check_defrag_in_cache() 923 if (end >= thresh) in check_defrag_in_cache() 937 u64 *off, u32 thresh) in find_new_extents() argument 971 btrfs_file_extent_num_bytes(leaf, extent) < thresh && in find_new_extents() 972 check_defrag_in_cache(inode, min_key.offset, thresh)) { in find_new_extents() 1046 static int should_defrag_range(struct inode *inode, u64 start, u32 thresh, in should_defrag_range() argument [all …]
|
D | extent-tree.c | 4357 u64 thresh; in should_alloc_chunk() local 4375 thresh = btrfs_super_total_bytes(root->fs_info->super_copy); in should_alloc_chunk() 4376 thresh = max_t(u64, SZ_64M, div_factor_fine(thresh, 1)); in should_alloc_chunk() 4378 if (num_bytes - num_allocated < thresh) in should_alloc_chunk() 4415 u64 thresh; in check_system_chunk() local 4435 thresh = btrfs_calc_trunc_metadata_size(root, num_devs) + in check_system_chunk() 4438 if (left < thresh && btrfs_test_opt(root->fs_info, ENOSPC_DEBUG)) { in check_system_chunk() 4440 left, thresh, type); in check_system_chunk() 4444 if (left < thresh) { in check_system_chunk() 4460 thresh, BTRFS_RESERVE_NO_FLUSH); in check_system_chunk() [all …]
|
D | super.c | 2088 u64 thresh = 0; in btrfs_statfs() local 2165 thresh = 4 * 1024 * 1024; in btrfs_statfs() 2167 if (!mixed && total_free_meta - thresh < block_rsv->size) in btrfs_statfs()
|
D | extent_io.c | 3281 int thresh = 8192; in writepage_delalloc() local 3283 if (delalloc_to_write < thresh * 2) in writepage_delalloc() 3284 thresh = delalloc_to_write; in writepage_delalloc() 3286 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 | 471 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()
|
/fs/ext4/ |
D | resize.c | 380 static int extend_or_restart_transaction(handle_t *handle, int thresh) in extend_or_restart_transaction() argument 384 if (ext4_handle_has_enough_credits(handle, thresh)) in extend_or_restart_transaction()
|