| /fs/xfs/ |
| A D | xfs_sysctl.c | 77 .extra2 = &xfs_params.sgid_inherit.max 86 .extra2 = &xfs_params.symlink_mode.max 95 .extra2 = &xfs_params.panic_mask.max 105 .extra2 = &xfs_params.error_level.max 114 .extra2 = &xfs_params.syncd_timer.max 123 .extra2 = &xfs_params.inherit_sync.max 132 .extra2 = &xfs_params.inherit_nodump.max 150 .extra2 = &xfs_params.inherit_nosym.max 159 .extra2 = &xfs_params.rotorstep.max 177 .extra2 = &xfs_params.fstrm_timer.max, [all …]
|
| /fs/ext4/ |
| A D | mballoc-test.c | 222 mb_set_bits(grp_ctx->bitmap_bh.b_data, max, sb->s_blocksize * 8 - max); in mbt_grp_ctx_init() 468 ext4_grpblk_t start, len, max; in mbt_generate_test_ranges() local 474 len = get_random_u32() % max; in mbt_generate_test_ranges() 475 len = min(len, max - start); in mbt_generate_test_ranges() 558 ext4_grpblk_t i, max; in test_mark_diskspace_used_range() local 611 int max; in mbt_generate_buddy() local 623 while (off < max) { in mbt_generate_buddy() 642 max = max >> 1; in mbt_generate_buddy() 645 while (off < max) { in mbt_generate_buddy() 661 while (off < max) { in mbt_generate_buddy() [all …]
|
| A D | mballoc.c | 515 return max; in mb_find_next_zero_bit() 528 return max; in mb_find_next_bit() 540 *max = 0; in mb_find_buddy() 690 int max; in __mb_check_buddy() local 812 min = max; in ext4_mb_mark_free_simple() 1912 int max; in mb_buddy_mark_free() local 2373 int max; in ext4_mb_try_best_found() local 2402 int max; in ext4_mb_find_by_goal() local 2475 int max; in ext4_mb_simple_scan_group() local 2614 int max; in ext4_mb_scan_aligned() local [all …]
|
| /fs/xfs/libxfs/ |
| A D | xfs_types.c | 197 unsigned long long *max) in xfs_icount_range() argument 207 *max = nr_inos; in xfs_icount_range() 216 unsigned long long min, max; in xfs_verify_icount() local 218 xfs_icount_range(mp, &min, &max); in xfs_verify_icount() 219 return icount >= min && icount <= max; in xfs_verify_icount()
|
| A D | xfs_trans_resv.c | 250 return max(t1, t2); in xfs_rtalloc_block_count() 330 return max(t1, t2); in xfs_calc_refcountbt_reservation() 405 return XFS_DQUOT_LOGRES + max(t4, max3(t1, t2, t3)); in xfs_calc_write_reservation() 559 return XFS_DQUOT_LOGRES + max(t4, max3(t1, t2, t3)); in xfs_calc_itruncate_reservation() 624 t3 = max(resp->tr_attrsetm.tr_logres, in xfs_calc_rename_reservation() 648 overhead += max(rename_overhead, exchange_overhead); in xfs_calc_rename_reservation() 667 ret += max(resp->tr_attrsetm.tr_logcount, in xfs_rename_log_count() 1119 return max((xfs_calc_inode_res(mp, 1) + in xfs_calc_attrinval_reservation() 1183 max((xfs_calc_inode_res(mp, 1) + in xfs_calc_attrrm_reservation() 1450 const unsigned int per_intent = max(max3(tx0, tx1, tx2), in xfs_calc_atomic_write_ioend_geometry() [all …]
|
| A D | xfs_da_btree.c | 561 int max; in xfs_da3_split() local 577 max = state->path.active - 1; in xfs_da3_split() 578 ASSERT((max >= 0) && (max < XFS_DA_NODE_MAXDEPTH)); in xfs_da3_split() 633 max - i, &action); in xfs_da3_split() 1662 int max; in xfs_da3_node_lookup_int() local 1759 max = nodehdr.count; in xfs_da3_node_lookup_int() 1765 probe = span = max / 2; in xfs_da3_node_lookup_int() 1777 ASSERT((probe >= 0) && (probe < max)); in xfs_da3_node_lookup_int() 1789 while (probe < max && in xfs_da3_node_lookup_int() 1797 if (probe == max) { in xfs_da3_node_lookup_int() [all …]
|
| /fs/ceph/ |
| A D | debugfs.c | 130 #define CEPH_LAT_METRIC_SHOW(name, total, avg, min, max, sq) { \ argument 134 _max = ktime_to_us(max); \ 143 #define CEPH_SZ_METRIC_SHOW(name, total, avg, min, max, sum) { \ argument 146 name, total, avg, _min, max, sum); \ 178 s64 total, avg, min, max, sq; in metrics_latency_show() local 190 max = m->latency_max; in metrics_latency_show() 193 CEPH_LAT_METRIC_SHOW(metric_str[i], total, avg, min, max, sq); in metrics_latency_show() 205 u64 sum, avg, min, max; in metrics_size_show() local 221 max = m->size_max; in metrics_size_show() 223 CEPH_SZ_METRIC_SHOW(metric_str[i], total, avg, min, max, sum); in metrics_size_show()
|
| A D | quota.c | 334 u64 max, rvalue; in check_quota_exceeded() local 370 max = ci->i_max_files; in check_quota_exceeded() 373 max = ci->i_max_bytes; in check_quota_exceeded() 380 exceeded = (max && (rvalue + delta > max)); in check_quota_exceeded() 383 if (max) { in check_quota_exceeded() 384 if (rvalue >= max) in check_quota_exceeded() 392 (((max - rvalue) >> 4) < delta); in check_quota_exceeded()
|
| /fs/smb/client/ |
| A D | compress.c | 160 static int collect_sample(const struct iov_iter *source, ssize_t max, u8 *sample) in collect_sample() argument 166 size_t part = umin(umin(iov_iter_count(&iter), SZ_2K), max); in collect_sample() 174 max -= n; in collect_sample() 196 const size_t read_size = SZ_2K, bkt_size = 256, max = SZ_4M; in is_compressible() local 208 if (len - read_size > max) in is_compressible() 209 len = max; in is_compressible()
|
| /fs/devpts/ |
| A D | inode.c | 83 int max; member 252 opts->max = result.uint_32; in devpts_parse_param() 337 fsi->mount_opts.max = new->mount_opts.max; in devpts_reconfigure() 363 if (opts->max < NR_UNIX98_PTY_MAX) in devpts_show_options() 364 seq_printf(seq, ",max=%d", opts->max); in devpts_show_options() 446 fsi->mount_opts.max = NR_UNIX98_PTY_MAX; in devpts_init_fs_context() 488 index = ida_alloc_max(&fsi->allocated_ptys, fsi->mount_opts.max - 1, in devpts_new_index()
|
| /fs/hfsplus/ |
| A D | bitmap.c | 20 u32 offset, u32 *max) in hfsplus_block_allocate() argument 30 len = *max; in hfsplus_block_allocate() 155 *max = offset + (curr - pptr) * 32 + i - start; in hfsplus_block_allocate() 156 sbi->free_blocks -= *max; in hfsplus_block_allocate() 158 hfs_dbg(BITMAP, "-> %u,%u\n", start, *max); in hfsplus_block_allocate()
|
| /fs/jfs/ |
| A D | jfs_extent.c | 313 s64 nb, nblks, daddr, max; in extBalloc() local 329 max = (s64) 1 << bmp->db_maxfreebud; in extBalloc() 330 if (*nblocks >= max && *nblocks > nbperpage) in extBalloc() 331 nb = nblks = (max > nbperpage) ? max : nbperpage; in extBalloc()
|
| A D | jfs_dmap.h | 55 tmp1 = max(*(cp+2), *(cp+3)); in TREEMAX() 56 tmp2 = max(*(cp), *(cp+1)); in TREEMAX() 58 return max(tmp1, tmp2); in TREEMAX()
|
| /fs/omfs/ |
| A D | bitmap.c | 27 int addrlen, int bit, int max) in count_run() argument 36 if (x < nbits || count > max) in count_run() 37 return min(count, max); in count_run() 41 return min(count, max); in count_run()
|
| /fs/jbd2/ |
| A D | recovery.c | 70 unsigned int max, nbufs, next; in do_readahead() local 77 max = start + (128 * 1024 / journal->j_blocksize); in do_readahead() 78 if (max > journal->j_total_len) in do_readahead() 79 max = journal->j_total_len; in do_readahead() 86 for (next = start; next < max; next++) { in do_readahead() 959 int offset, max; in scan_revoke_records() local 972 max = rcount; in scan_revoke_records() 978 info->nr_revokes += (max - offset) / record_len; in scan_revoke_records() 982 while (offset + record_len <= max) { in scan_revoke_records()
|
| /fs/f2fs/ |
| A D | inline.c | 455 memcpy(dst.dentry, src.dentry, SIZE_OF_DIR_ENTRY * src.max); in f2fs_move_inline_dirents() 456 memcpy(dst.filename, src.filename, src.max * F2FS_SLOT_LEN); in f2fs_move_inline_dirents() 492 while (bit_pos < d.max) { in f2fs_add_inline_entries() 654 bit_pos = f2fs_room_for_filename(d.bitmap, slots, d.max); in f2fs_add_inline_entry() 655 if (bit_pos >= d.max) { in f2fs_add_inline_entry() 744 bit_pos = find_next_bit_le(d.bitmap, d.max, bit_pos); in f2fs_empty_inline_dir() 748 if (bit_pos < d.max) in f2fs_empty_inline_dir() 765 if (ctx->pos == d.max) in f2fs_read_inline_dir() 784 ctx->pos = d.max; in f2fs_read_inline_dir()
|
| A D | dir.c | 222 while (bit_pos < d->max) { in f2fs_find_target_dentry() 634 bit_pos = f2fs_room_for_filename(d.bitmap, slots, d.max); in f2fs_has_enough_room() 636 return bit_pos < d.max; in f2fs_has_enough_room() 970 bit_pos = ((unsigned long)ctx->pos % d->max); in f2fs_fill_dentries() 975 while (bit_pos < d->max) { in f2fs_fill_dentries() 976 bit_pos = find_next_bit_le(d->bitmap, d->max, bit_pos); in f2fs_fill_dentries() 977 if (bit_pos >= d->max) in f2fs_fill_dentries() 1000 if (unlikely(bit_pos > d->max || in f2fs_fill_dentries()
|
| /fs/bcachefs/ |
| A D | opts.c | 239 #define OPT_BOOL() .type = BCH_OPT_BOOL, .min = 0, .max = 2 241 .min = _min, .max = _max 243 .min = 0, .max = ARRAY_SIZE(_choices) - 1, \ 246 .min = 0, .max = U64_MAX, \ 337 if (opt->max && v >= opt->max) { in bch2_opt_validate() 340 opt->attr.name, opt->max); in bch2_opt_validate() 477 if (v < opt->min || v >= opt->max) in bch2_opt_to_text()
|
| A D | fs-io-pagecache.c | 213 unsigned folio_offset = max(bkey_start_offset(k.k), folio_start) - in bch2_folio_set() 269 unsigned folio_offset = max(start, folio_start) - folio_start; in bch2_mark_pagecache_unallocated() 330 unsigned folio_offset = max(*start, folio_start) - folio_start; in bch2_mark_pagecache_reserved() 355 return max(0, (int) nr_replicas - in sectors_to_reserve() 612 unsigned len = max(PAGE_SIZE, block_bytes(c)); in bch2_page_mkwrite() 722 max(folio_pos(folio), start_offset), in bch2_seek_pagecache_data() 769 *offset = max(*offset, in folio_hole_offset()
|
| /fs/hfs/ |
| A D | bitmap.c | 29 static u32 hfs_find_set_zero_bits(__be32 *bitmap, u32 size, u32 offset, u32 *max) in hfs_find_set_zero_bits() argument 36 len = *max; in hfs_find_set_zero_bits() 108 *max = (curr - bitmap) * 32 + i - start; in hfs_find_set_zero_bits()
|
| /fs/iomap/ |
| A D | swapfile.c | 37 if (unlikely(isi->nr_pages >= isi->sis->max)) in iomap_swapfile_add_extent() 39 max_pages = isi->sis->max - isi->nr_pages; in iomap_swapfile_add_extent() 188 sis->max = isi.nr_pages; in iomap_swapfile_activate()
|
| /fs/nfs/ |
| A D | pnfs_nfs.c | 245 int max) in pnfs_bucket_scan_ds_commit_list() argument 252 ret = nfs_scan_commit_list(src, dst, cinfo, max); in pnfs_bucket_scan_ds_commit_list() 263 int max) in pnfs_bucket_scan_array() argument 268 for (i = 0; i < nbuckets && max != 0; i++) { in pnfs_bucket_scan_array() 269 cnt = pnfs_bucket_scan_ds_commit_list(&buckets[i], cinfo, max); in pnfs_bucket_scan_array() 271 max -= cnt; in pnfs_bucket_scan_array() 279 int pnfs_generic_scan_commit_lists(struct nfs_commit_info *cinfo, int max) in pnfs_generic_scan_commit_lists() argument 291 array->nbuckets, max); in pnfs_generic_scan_commit_lists() 295 max -= cnt; in pnfs_generic_scan_commit_lists() 296 if (!max) in pnfs_generic_scan_commit_lists()
|
| A D | pnfs.h | 199 int max); 416 int pnfs_generic_scan_commit_lists(struct nfs_commit_info *cinfo, int max); 552 int max) in pnfs_scan_commit_lists() argument 558 return fl_cinfo->ops->scan_commit_lists(cinfo, max); in pnfs_scan_commit_lists() 861 int max) in pnfs_scan_commit_lists() argument
|
| /fs/dlm/ |
| A D | member.c | 168 int max = 0; in dlm_slots_assign() local 200 if (!max || max < memb->slot) in dlm_slots_assign() 201 max = memb->slot; in dlm_slots_assign() 213 array_size = max + need; in dlm_slots_assign()
|
| A D | dlm_internal.h | 741 uint32_t min, uint32_t max) in dlm_flags_val() argument 745 for_each_set_bit_from(bit, addr, max + 1) { in dlm_flags_val() 785 uint32_t min, uint32_t max) in dlm_set_flags_val() argument 789 for (bit = min; bit < (max + 1); bit++) { in dlm_set_flags_val()
|