Home
last modified time | relevance | path

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

/fs/btrfs/
Dasync-thread.c53 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 …]
Dasync-thread.h73 int thresh);
Dioctl.c896 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 …]
Dextent-tree.c4236 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 …]
Dsuper.c1988 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()
Dextent_io.c3393 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/
Djfs_types.h145 u8 thresh; /* Alert Threshold (in percent) */ member
/fs/ocfs2/
Djournal.h262 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()
/fs/ext4/
Dresize.c408 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()