Home
last modified time | relevance | path

Searched refs:num (Results 1 – 25 of 78) sorted by relevance

1234

/fs/nfs/
A Dnamespace.c323 long num; in param_set_nfs_timeout() local
328 ret = kstrtol(val, 0, &num); in param_set_nfs_timeout()
331 if (num > 0) { in param_set_nfs_timeout()
332 if (num >= INT_MAX / HZ) in param_set_nfs_timeout()
333 num = INT_MAX; in param_set_nfs_timeout()
335 num *= HZ; in param_set_nfs_timeout()
336 *((int *)kp->arg) = num; in param_set_nfs_timeout()
350 if (num > 0) { in param_get_nfs_timeout()
352 num = INT_MAX / HZ; in param_get_nfs_timeout()
354 num = (num + (HZ - 1)) / HZ; in param_get_nfs_timeout()
[all …]
/fs/ext2/
A Dballoc.c709 if (num == 0) in ext2_try_to_allocate()
713 num++; in ext2_try_to_allocate()
716 if (num == 0) in ext2_try_to_allocate()
719 *count = num; in ext2_try_to_allocate()
1144 *count = num; in ext2_try_to_allocate_with_rsv()
1147 num = *count; in ext2_try_to_allocate_with_rsv()
1392 num = *count; in ext2_new_blocks()
1418 *count = num; in ext2_new_blocks()
1491 int num = b; in test_root() local
1493 while (a > num) in test_root()
[all …]
/fs/ext4/
A Dhash.c135 static void str2hashbuf_signed(const char *msg, int len, __u32 *buf, int num) in str2hashbuf_signed() argument
145 if (len > num*4) in str2hashbuf_signed()
146 len = num * 4; in str2hashbuf_signed()
152 num--; in str2hashbuf_signed()
155 if (--num >= 0) in str2hashbuf_signed()
157 while (--num >= 0) in str2hashbuf_signed()
171 if (len > num*4) in str2hashbuf_unsigned()
172 len = num * 4; in str2hashbuf_unsigned()
178 num--; in str2hashbuf_unsigned()
181 if (--num >= 0) in str2hashbuf_unsigned()
[all …]
A Dblock_validity.c154 u32 i = 0, num; in ext4_protect_reserved_inode() local
163 num = (inode->i_size + sb->s_blocksize - 1) >> sb->s_blocksize_bits; in ext4_protect_reserved_inode()
164 while (i < num) { in ext4_protect_reserved_inode()
167 map.m_len = num - i; in ext4_protect_reserved_inode()
/fs/f2fs/
A Dhash.c43 unsigned int *buf, int num) in str2hashbuf() argument
52 if (len > num * 4) in str2hashbuf()
53 len = num * 4; in str2hashbuf()
61 num--; in str2hashbuf()
64 if (--num >= 0) in str2hashbuf()
66 while (--num >= 0) in str2hashbuf()
/fs/nfs/filelayout/
A Dfilelayoutdev.c68 u32 cnt, num; in nfs4_fl_alloc_deviceid_node() local
125 num = be32_to_cpup(p); in nfs4_fl_alloc_deviceid_node()
126 dprintk("%s ds_num %u\n", __func__, num); in nfs4_fl_alloc_deviceid_node()
127 if (num > NFS4_PNFS_MAX_MULTI_CNT) { in nfs4_fl_alloc_deviceid_node()
130 num, NFS4_PNFS_MAX_MULTI_CNT); in nfs4_fl_alloc_deviceid_node()
135 if (max_stripe_index >= num) { in nfs4_fl_alloc_deviceid_node()
137 __func__, max_stripe_index, num); in nfs4_fl_alloc_deviceid_node()
141 dsaddr = kzalloc(struct_size(dsaddr, ds_list, num), gfp_flags); in nfs4_fl_alloc_deviceid_node()
148 dsaddr->ds_num = num; in nfs4_fl_alloc_deviceid_node()
/fs/smb/client/
A Dsmb2file.c317 if (++num == max_num) { in smb2_unlock_range()
321 current->tgid, num, buf); in smb2_unlock_range()
338 num = 0; in smb2_unlock_range()
342 if (num) { in smb2_unlock_range()
345 num, buf); in smb2_unlock_range()
365 unsigned int num = 0; in smb2_push_mand_fdlocks() local
374 if (++num == max_num) { in smb2_push_mand_fdlocks()
378 current->tgid, num, buf); in smb2_push_mand_fdlocks()
382 num = 0; in smb2_push_mand_fdlocks()
386 if (num) { in smb2_push_mand_fdlocks()
[all …]
A Dsmb2pdu.c1023 *num_iovec = num + 1; in add_posix_context()
2423 *num_iovec = num + 1; in add_lease_context()
2512 *num_iovec = num + 1; in add_durable_v2_context()
2529 *num_iovec = num + 1; in add_durable_reconnect_v2_context()
2556 *num_iovec = num + 1; in add_durable_context()
2595 *num_iovec = num + 1; in add_twarp_context()
2723 iov[num].iov_len = len; in add_sd_context()
2724 *num_iovec = num + 1; in add_sd_context()
2760 *num_iovec = num + 1; in add_query_id_context()
5670 if (!num) in send_set_info()
[all …]
/fs/ubifs/
A Dlpt.c526 num = 1; in calc_nnode_num()
533 return num; in calc_nnode_num()
556 num = parent->num ^ (1 << shft); in calc_nnode_num_from_parent()
558 return num; in calc_nnode_num_from_parent()
576 int i, n = c->lpt_hght - 1, pnum = parent->num, num = 0; in calc_pnode_num_from_parent() local
584 num |= iip; in calc_pnode_num_from_parent()
585 return num; in calc_pnode_num_from_parent()
1112 if (nnode->num != num) in validate_nnode()
1156 if (pnode->num != num) in validate_pnode()
2397 if (cnode->num != num) { in dbg_check_lpt_nodes()
[all …]
/fs/dlm/
A Dmember.c169 int num = 0; in dlm_slots_assign() local
198 num++; in dlm_slots_assign()
218 num = 0; in dlm_slots_assign()
234 num++; in dlm_slots_assign()
251 num++; in dlm_slots_assign()
272 if (num > max_slots) { in dlm_slots_assign()
274 num, max_slots); in dlm_slots_assign()
282 *num_slots = num; in dlm_slots_assign()
511 int i, num; in dlm_lsop_recover_done() local
516 num = ls->ls_num_nodes; in dlm_lsop_recover_done()
[all …]
/fs/gfs2/
A Dmeta_io.c228 while (num > 0) { in gfs2_submit_bhs()
232 bio = bio_alloc(bh->b_bdev, num, opf, GFP_NOIO); in gfs2_submit_bhs()
234 while (num > 0) { in gfs2_submit_bhs()
241 num--; in gfs2_submit_bhs()
264 int num = 0; in gfs2_meta_read() local
281 bhs[num++] = bh; in gfs2_meta_read()
293 bhs[num++] = bh; in gfs2_meta_read()
297 gfs2_submit_bhs(REQ_OP_READ | REQ_META | REQ_PRIO, bhs, num); in gfs2_meta_read()
486 int gfs2_meta_buffer(struct gfs2_inode *ip, u32 mtype, u64 num, in gfs2_meta_buffer() argument
495 if (num == ip->i_no_addr) in gfs2_meta_buffer()
[all …]
A Dlops.c648 unsigned int num; in gfs2_before_commit() local
656 num = total; in gfs2_before_commit()
658 num = limit; in gfs2_before_commit()
662 GFS2_LOG_DESC_METADATA, num + 1, num); in gfs2_before_commit()
674 if (++n >= num) in gfs2_before_commit()
703 if (++n >= num) in gfs2_before_commit()
707 BUG_ON(total < num); in gfs2_before_commit()
708 total -= num; in gfs2_before_commit()
/fs/hfs/
A Dbnode.c317 static inline int hfs_bnode_hash(u32 num) in hfs_bnode_hash() argument
319 num = (num >> 16) + num; in hfs_bnode_hash()
320 num += num >> 8; in hfs_bnode_hash()
321 return num & (NODE_HASH_SIZE - 1); in hfs_bnode_hash()
415 struct hfs_bnode *hfs_bnode_find(struct hfs_btree *tree, u32 num) in hfs_bnode_find() argument
423 node = hfs_bnode_findhash(tree, num); in hfs_bnode_find()
433 node = __hfs_bnode_create(tree, num); in hfs_bnode_find()
509 struct hfs_bnode *hfs_bnode_create(struct hfs_btree *tree, u32 num) in hfs_bnode_create() argument
516 node = hfs_bnode_findhash(tree, num); in hfs_bnode_create()
519 pr_crit("new node %u already hashed?\n", num); in hfs_bnode_create()
[all …]
/fs/verity/
A Dhash_algs.c36 unsigned int num) in fsverity_get_hash_alg() argument
38 if (num >= ARRAY_SIZE(fsverity_hash_algs) || in fsverity_get_hash_alg()
39 !fsverity_hash_algs[num].name) { in fsverity_get_hash_alg()
40 fsverity_warn(inode, "Unknown hash algorithm number: %u", num); in fsverity_get_hash_alg()
43 return &fsverity_hash_algs[num]; in fsverity_get_hash_alg()
/fs/hfsplus/
A Dbnode.c467 static inline int hfs_bnode_hash(u32 num) in hfs_bnode_hash() argument
469 num = (num >> 16) + num; in hfs_bnode_hash()
470 num += num >> 8; in hfs_bnode_hash()
471 return num & (NODE_HASH_SIZE - 1); in hfs_bnode_hash()
565 struct hfs_bnode *hfs_bnode_find(struct hfs_btree *tree, u32 num) in hfs_bnode_find() argument
573 node = hfs_bnode_findhash(tree, num); in hfs_bnode_find()
584 node = __hfs_bnode_create(tree, num); in hfs_bnode_find()
660 struct hfs_bnode *hfs_bnode_create(struct hfs_btree *tree, u32 num) in hfs_bnode_create() argument
667 node = hfs_bnode_findhash(tree, num); in hfs_bnode_create()
670 pr_crit("new node %u already hashed?\n", num); in hfs_bnode_create()
[all …]
/fs/proc/
A Dproc_tty.c27 dev_t from, int num) in show_tty_range() argument
31 if (p->num > 1) { in show_tty_range()
33 MINOR(from) + num - 1); in show_tty_range()
71 dev_t to = from + p->num; in show_tty_driver()
/fs/ceph/
A Dsnap.c357 num += parent->cached_context->num_snaps; in build_snap_context()
379 snapc = ceph_create_snap_context(num, GFP_NOFS); in build_snap_context()
384 num = 0; in build_snap_context()
394 snapc->snaps[num++] = in build_snap_context()
399 memcpy(snapc->snaps + num, realm->snaps, in build_snap_context()
401 num += realm->num_snaps; in build_snap_context()
404 num += realm->num_prior_parent_snaps; in build_snap_context()
407 snapc->num_snaps = num; in build_snap_context()
495 if (num) { in dup_array()
496 *dst = kcalloc(num, sizeof(u64), GFP_NOFS); in dup_array()
[all …]
/fs/minix/
A Ditree_common.c71 int num, in alloc_branch() argument
81 if (parent) for (n = 1; n < num; n++) { in alloc_branch()
104 if (n == num) in alloc_branch()
118 int num) in splice_branch() argument
145 for (i = 1; i < num; i++) in splice_branch()
147 for (i = 0; i < num; i++) in splice_branch()
A Dminix.h129 unsigned short num; in minix_find_first_zero_bit() local
140 num = *--p; in minix_find_first_zero_bit()
141 return ((p - addr) << 4) + ffz(num); in minix_find_first_zero_bit()
/fs/
A Dseq_file.c692 unsigned long long num, unsigned int width) in seq_put_decimal_ull_width() argument
712 len = num_to_str(m->buf + m->count, m->size - m->count, num, width); in seq_put_decimal_ull_width()
724 unsigned long long num) in seq_put_decimal_ull() argument
726 return seq_put_decimal_ull_width(m, delimiter, num, 0); in seq_put_decimal_ull()
776 void seq_put_decimal_ll(struct seq_file *m, const char *delimiter, long long num) in seq_put_decimal_ll() argument
793 if (num < 0) { in seq_put_decimal_ll()
795 num = -num; in seq_put_decimal_ll()
798 if (num < 10) { in seq_put_decimal_ll()
799 m->buf[m->count++] = num + '0'; in seq_put_decimal_ll()
803 len = num_to_str(m->buf + m->count, m->size - m->count, num, 0); in seq_put_decimal_ll()
/fs/ocfs2/
A Docfs2_trace.h11 TP_PROTO(int num),
12 TP_ARGS(num),
14 __field(int, num)
17 __entry->num = num;
24 TP_PROTO(int num), \
25 TP_ARGS(num))
29 TP_ARGS(num),
34 __entry->num = num;
42 TP_ARGS(num))
59 TP_ARGS(num))
[all …]
/fs/adfs/
A Ddir.c101 unsigned int i, num; in adfs_dir_read_buffers() local
104 num = ALIGN(size, sb->s_blocksize) >> sb->s_blocksize_bits; in adfs_dir_read_buffers()
105 if (num > ARRAY_SIZE(dir->bh)) { in adfs_dir_read_buffers()
110 bhs = kcalloc(num, sizeof(*bhs), GFP_KERNEL); in adfs_dir_read_buffers()
120 for (i = dir->nr_buffers; i < num; i++) { in adfs_dir_read_buffers()
/fs/squashfs/
A Dsuper.c95 unsigned long num; in squashfs_parse_param_threads_num() local
97 ret = kstrtoul(str, 0, &num); in squashfs_parse_param_threads_num()
100 if (num > 1) { in squashfs_parse_param_threads_num()
102 if (num > opts->thread_ops->max_decompressors()) in squashfs_parse_param_threads_num()
104 opts->thread_num = (int)num; in squashfs_parse_param_threads_num()
108 if (num == 1) { in squashfs_parse_param_threads_num()
/fs/udf/
A Ddirectory.c129 int i, num; in udf_readahead_dir() local
137 num = 0; in udf_readahead_dir()
143 bha[num++] = tmp; in udf_readahead_dir()
147 if (num) { in udf_readahead_dir()
148 bh_readahead_batch(num, bha, REQ_RAHEAD); in udf_readahead_dir()
149 for (i = 0; i < num; i++) in udf_readahead_dir()
/fs/smb/server/
A Dvfs_cache.c666 int num = 0; in __close_file_table_ids() local
694 num++; in __close_file_table_ids()
698 return num; in __close_file_table_ids()
898 int num = __close_file_table_ids(&work->sess->file_table, in ksmbd_close_tree_conn_fds() local
902 atomic_sub(num, &work->conn->stats.open_files_count); in ksmbd_close_tree_conn_fds()
907 int num = __close_file_table_ids(&work->sess->file_table, in ksmbd_close_session_fds() local
911 atomic_sub(num, &work->conn->stats.open_files_count); in ksmbd_close_session_fds()

Completed in 59 milliseconds

1234