Searched refs:thresh (Results 1 – 10 of 10) sorted by relevance
/fs/btrfs/ |
D | async-thread.c | 53 int thresh; member 81 if (wq->normal->thresh == NO_THRESHOLD) in btrfs_workqueue_normal_congested() 84 return atomic_read(&wq->normal->pending) > wq->normal->thresh * 2; in btrfs_workqueue_normal_congested() 112 int thresh) in __btrfs_alloc_workqueue() argument 121 if (thresh == 0) in __btrfs_alloc_workqueue() 122 thresh = DFT_THRESHOLD; in __btrfs_alloc_workqueue() 124 if (thresh < DFT_THRESHOLD) { in __btrfs_alloc_workqueue() 126 ret->thresh = NO_THRESHOLD; in __btrfs_alloc_workqueue() 134 ret->thresh = thresh; in __btrfs_alloc_workqueue() 163 int thresh) in btrfs_alloc_workqueue() argument [all …]
|
D | async-thread.h | 73 int thresh);
|
D | ioctl.c | 896 static int check_defrag_in_cache(struct inode *inode, u64 offset, u32 thresh) in check_defrag_in_cache() argument 910 if (end - offset > thresh) in check_defrag_in_cache() 914 thresh /= 2; in check_defrag_in_cache() 915 end = count_range_bits(io_tree, &offset, offset + thresh, in check_defrag_in_cache() 916 thresh, EXTENT_DELALLOC, 1); in check_defrag_in_cache() 917 if (end >= thresh) in check_defrag_in_cache() 931 u64 *off, u32 thresh) in find_new_extents() argument 965 btrfs_file_extent_num_bytes(leaf, extent) < thresh && in find_new_extents() 966 check_defrag_in_cache(inode, min_key.offset, thresh)) { in find_new_extents() 1040 static int should_defrag_range(struct inode *inode, u64 start, u32 thresh, in should_defrag_range() argument [all …]
|
D | extent-tree.c | 4236 u64 thresh; in should_alloc_chunk() local 4254 thresh = btrfs_super_total_bytes(root->fs_info->super_copy); in should_alloc_chunk() 4255 thresh = max_t(u64, 64 * 1024 * 1024, in should_alloc_chunk() 4256 div_factor_fine(thresh, 1)); in should_alloc_chunk() 4258 if (num_bytes - num_allocated < thresh) in should_alloc_chunk() 4295 u64 thresh; in check_system_chunk() local 4315 thresh = btrfs_calc_trunc_metadata_size(root, num_devs) + in check_system_chunk() 4318 if (left < thresh && btrfs_test_opt(root, ENOSPC_DEBUG)) { in check_system_chunk() 4320 left, thresh, type); in check_system_chunk() 4324 if (left < thresh) { in check_system_chunk() [all …]
|
D | super.c | 1988 u64 thresh = 0; in btrfs_statfs() local 2061 thresh = 4 * 1024 * 1024; in btrfs_statfs() 2071 total_free_meta - thresh < block_rsv->size) in btrfs_statfs()
|
D | extent_io.c | 3393 int thresh = 8192; in writepage_delalloc() local 3395 if (delalloc_to_write < thresh * 2) in writepage_delalloc() 3396 thresh = delalloc_to_write; in writepage_delalloc() 3398 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 | 408 static int extend_or_restart_transaction(handle_t *handle, int thresh) in extend_or_restart_transaction() argument 412 if (ext4_handle_has_enough_credits(handle, thresh)) in extend_or_restart_transaction()
|