Home
last modified time | relevance | path

Searched refs:max (Results 1 – 25 of 139) sorted by relevance

123456

/fs/cachefiles/
Dkey.c38 int loop, len, max, seg, mark, print; in cachefiles_cook_key() local
54 max = keylen - 2; in cachefiles_cook_key()
55 max += 2; /* two base64'd length chars on the front */ in cachefiles_cook_key()
56 max += 5; /* @checksum/M */ in cachefiles_cook_key()
57 max += 3 * 2; /* maximum number of segment dividers (".../M") in cachefiles_cook_key()
60 max += 1; /* NUL on end */ in cachefiles_cook_key()
65 max = keylen * 4; in cachefiles_cook_key()
66 max += 5; /* @checksum/M */ in cachefiles_cook_key()
67 max += 3 * 2; /* maximum number of segment dividers (".../M") in cachefiles_cook_key()
70 max += 1; /* NUL on end */ in cachefiles_cook_key()
[all …]
Drdwr.c157 int error, max; in cachefiles_read_copier() local
165 max = 8; in cachefiles_read_copier()
210 max--; in cachefiles_read_copier()
211 if (max < 0 || need_resched()) { in cachefiles_read_copier()
/fs/xfs/
Dxfs_sysctl.c61 .extra2 = &xfs_params.sgid_inherit.max
70 .extra2 = &xfs_params.symlink_mode.max
79 .extra2 = &xfs_params.panic_mask.max
89 .extra2 = &xfs_params.error_level.max
98 .extra2 = &xfs_params.syncd_timer.max
107 .extra2 = &xfs_params.inherit_sync.max
116 .extra2 = &xfs_params.inherit_nodump.max
125 .extra2 = &xfs_params.inherit_noatim.max
134 .extra2 = &xfs_params.inherit_nosym.max
143 .extra2 = &xfs_params.rotorstep.max
[all …]
/fs/ext4/
Dmballoc.c402 static inline int mb_find_next_zero_bit(void *addr, int max, int start) in mb_find_next_zero_bit() argument
406 tmpmax = max + fix; in mb_find_next_zero_bit()
410 if (ret > max) in mb_find_next_zero_bit()
411 return max; in mb_find_next_zero_bit()
415 static inline int mb_find_next_bit(void *addr, int max, int start) in mb_find_next_bit() argument
419 tmpmax = max + fix; in mb_find_next_bit()
423 if (ret > max) in mb_find_next_bit()
424 return max; in mb_find_next_bit()
428 static void *mb_find_buddy(struct ext4_buddy *e4b, int order, int *max) in mb_find_buddy() argument
433 BUG_ON(max == NULL); in mb_find_buddy()
[all …]
Dextents_status.c1569 struct ext4_inode_info *ei, *max = NULL; in ext4_seq_es_shrinker_info_show() local
1579 if (max && max->i_es_all_nr < ei->i_es_all_nr) in ext4_seq_es_shrinker_info_show()
1580 max = ei; in ext4_seq_es_shrinker_info_show()
1581 else if (!max) in ext4_seq_es_shrinker_info_show()
1582 max = ei; in ext4_seq_es_shrinker_info_show()
1602 max->vfs_inode.i_ino, max->i_es_all_nr, max->i_es_shk_nr, in ext4_seq_es_shrinker_info_show()
/fs/ceph/
Dquota.c320 u64 max, rvalue; in check_quota_exceeded() local
355 max = ci->i_max_files; in check_quota_exceeded()
358 max = ci->i_max_bytes; in check_quota_exceeded()
364 exceeded = (max && (rvalue >= max)); in check_quota_exceeded()
367 exceeded = (max && (rvalue + delta > max)); in check_quota_exceeded()
370 if (max) { in check_quota_exceeded()
371 if (rvalue >= max) in check_quota_exceeded()
379 (((max - rvalue) >> 4) < delta); in check_quota_exceeded()
/fs/xfs/libxfs/
Dxfs_types.c183 unsigned long long *max) in xfs_icount_range() argument
197 *max = nr_inos; in xfs_icount_range()
206 unsigned long long min, max; in xfs_verify_icount() local
208 xfs_icount_range(mp, &min, &max); in xfs_verify_icount()
209 return icount >= min && icount <= max; in xfs_verify_icount()
Dxfs_trans_resv.c238 max((xfs_calc_inode_res(mp, 1) + in xfs_calc_write_reservation()
265 max((xfs_calc_inode_res(mp, 1) + in xfs_calc_itruncate_reservation()
290 max((xfs_calc_inode_res(mp, 4) + in xfs_calc_rename_reservation()
330 max((xfs_calc_inode_res(mp, 2) + in xfs_calc_link_reservation()
368 max((xfs_calc_inode_res(mp, 1) + in xfs_calc_remove_reservation()
426 max(xfs_calc_icreate_resv_alloc(mp), in xfs_calc_icreate_reservation()
634 return max((xfs_calc_inode_res(mp, 1) + in xfs_calc_attrinval_reservation()
698 max((xfs_calc_inode_res(mp, 1) + in xfs_calc_attrrm_reservation()
Dxfs_da_btree.c386 int max; in xfs_da3_split() local
399 max = state->path.active - 1; in xfs_da3_split()
400 ASSERT((max >= 0) && (max < XFS_DA_NODE_MAXDEPTH)); in xfs_da3_split()
401 ASSERT(state->path.blk[max].magic == XFS_ATTR_LEAF_MAGIC || in xfs_da3_split()
402 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_split()
404 addblk = &state->path.blk[max]; /* initial dummy value */ in xfs_da3_split()
405 for (i = max; (i >= 0) && addblk; state->path.active--, i--) { in xfs_da3_split()
454 max - i, &action); in xfs_da3_split()
482 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_split()
1498 int max; in xfs_da3_node_lookup_int() local
[all …]
/fs/hfsplus/
Dbitmap.c20 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/omfs/
Dbitmap.c27 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/
Drecovery.c70 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_maxlen) in do_readahead()
79 max = journal->j_maxlen; in do_readahead()
86 for (next = start; next < max; next++) { in do_readahead()
816 int offset, max; in scan_revoke_records() local
832 max = rcount; in scan_revoke_records()
837 while (offset + record_len <= max) { in scan_revoke_records()
/fs/f2fs/
Dinline.c425 memcpy(dst.dentry, src.dentry, SIZE_OF_DIR_ENTRY * src.max); in f2fs_move_inline_dirents()
426 memcpy(dst.filename, src.filename, src.max * F2FS_SLOT_LEN); in f2fs_move_inline_dirents()
462 while (bit_pos < d.max) { in f2fs_add_inline_entries()
581 bit_pos = f2fs_room_for_filename(d.bitmap, slots, d.max); in f2fs_add_inline_entry()
582 if (bit_pos >= d.max) { in f2fs_add_inline_entry()
671 bit_pos = find_next_bit_le(d.bitmap, d.max, bit_pos); in f2fs_empty_inline_dir()
675 if (bit_pos < d.max) in f2fs_empty_inline_dir()
692 if (ctx->pos == d.max) in f2fs_read_inline_dir()
711 ctx->pos = d.max; in f2fs_read_inline_dir()
Ddir.c218 while (bit_pos < d->max) { in f2fs_find_target_dentry()
907 bit_pos = ((unsigned long)ctx->pos % d->max); in f2fs_fill_dentries()
912 while (bit_pos < d->max) { in f2fs_fill_dentries()
913 bit_pos = find_next_bit_le(d->bitmap, d->max, bit_pos); in f2fs_fill_dentries()
914 if (bit_pos >= d->max) in f2fs_fill_dentries()
936 if (unlikely(bit_pos > d->max || in f2fs_fill_dentries()
/fs/hfs/
Dbitmap.c29 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/devpts/
Dinode.c101 int max; member
258 opts->max = NR_UNIX98_PTY_MAX; in parse_mount_options()
311 opts->max = option; in parse_mount_options()
416 if (opts->max < NR_UNIX98_PTY_MAX) in devpts_show_options()
417 seq_printf(seq, ",max=%d", opts->max); in devpts_show_options()
538 index = ida_alloc_max(&fsi->allocated_ptys, fsi->mount_opts.max - 1, in devpts_new_index()
/fs/jfs/
Djfs_extent.c500 s64 nb, nblks, daddr, max; in extBalloc() local
511 max = (s64) 1 << bmp->db_maxfreebud; in extBalloc()
512 if (*nblocks >= max && *nblocks > nbperpage) in extBalloc()
513 nb = nblks = (max > nbperpage) ? max : nbperpage; in extBalloc()
Djfs_dmap.h55 tmp1 = max(*(cp+2), *(cp+3)); in TREEMAX()
56 tmp2 = max(*(cp), *(cp+1)); in TREEMAX()
58 return max(tmp1, tmp2); in TREEMAX()
/fs/dlm/
Dmember.c172 int max = 0; in dlm_slots_assign() local
204 if (!max || max < memb->slot) in dlm_slots_assign()
205 max = memb->slot; in dlm_slots_assign()
217 array_size = max + need; in dlm_slots_assign()
/fs/nfs/
Dpnfs_nfs.c94 int max) in pnfs_generic_scan_ds_commit_list() argument
101 ret = nfs_scan_commit_list(src, dst, cinfo, max); in pnfs_generic_scan_ds_commit_list()
119 int max) in pnfs_generic_scan_commit_lists() argument
124 for (i = 0; i < cinfo->ds->nbuckets && max != 0; i++) { in pnfs_generic_scan_commit_lists()
126 cinfo, max); in pnfs_generic_scan_commit_lists()
127 max -= cnt; in pnfs_generic_scan_commit_lists()
Dpnfs.h158 int max);
376 int pnfs_generic_scan_commit_lists(struct nfs_commit_info *cinfo, int max);
489 int max) in pnfs_scan_commit_lists() argument
494 return NFS_SERVER(inode)->pnfs_curr_ld->scan_commit_lists(cinfo, max); in pnfs_scan_commit_lists()
768 int max) in pnfs_scan_commit_lists() argument
/fs/ocfs2/
Docfs2.h920 static inline int ocfs2_find_next_zero_bit_unaligned(void *bitmap, int max, in ocfs2_find_next_zero_bit_unaligned() argument
925 tmpmax = max + fix; in ocfs2_find_next_zero_bit_unaligned()
929 if (ret > max) in ocfs2_find_next_zero_bit_unaligned()
930 return max; in ocfs2_find_next_zero_bit_unaligned()
/fs/reiserfs/
Dbitmap.c145 int min, int max, int unfm) in scan_bitmap_block() argument
192 if (end >= *beg + max || end >= boundary in scan_bitmap_block()
349 int min, int max, int unfm, sector_t file_block) in scan_bitmap() argument
392 min, max, unfm); in scan_bitmap()
402 scan_bitmap_block(th, bm, &off, off_max, min, max, unfm); in scan_bitmap()
408 scan_bitmap_block(th, bm, &off, end_off + 1, min, max, unfm); in scan_bitmap()
/fs/
Dselect.c423 int max; in max_select_fd() local
431 max = 0; in max_select_fd()
448 if (max) in max_select_fd()
452 max++; in max_select_fd()
455 max += n * BITS_PER_LONG; in max_select_fd()
458 return max; in max_select_fd()
/fs/btrfs/
Dasync-thread.h42 void btrfs_workqueue_set_max(struct btrfs_workqueue *wq, int max);

123456