Home
last modified time | relevance | path

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

1234

/fs/nfs/
Dnamespace.c321 long num; in param_set_nfs_timeout() local
326 ret = kstrtol(val, 0, &num); in param_set_nfs_timeout()
329 if (num > 0) { in param_set_nfs_timeout()
330 if (num >= INT_MAX / HZ) in param_set_nfs_timeout()
331 num = INT_MAX; in param_set_nfs_timeout()
333 num *= HZ; in param_set_nfs_timeout()
334 *((int *)kp->arg) = num; in param_set_nfs_timeout()
336 mod_delayed_work(system_wq, &nfs_automount_task, num); in param_set_nfs_timeout()
346 long num = *((int *)kp->arg); in param_get_nfs_timeout() local
348 if (num > 0) { in param_get_nfs_timeout()
[all …]
/fs/btrfs/
Dmisc.h35 static inline u64 div_factor(u64 num, int factor) in div_factor() argument
38 return num; in div_factor()
39 num *= factor; in div_factor()
40 return div_u64(num, 10); in div_factor()
43 static inline u64 div_factor_fine(u64 num, int factor) in div_factor_fine() argument
46 return num; in div_factor_fine()
47 num *= factor; in div_factor_fine()
48 return div_u64(num, 100); in div_factor_fine()
/fs/cifs/
Dsmb2file.c120 unsigned int max_num, num = 0, max_buf; in smb2_unlock_range() local
178 if (++num == max_num) { in smb2_unlock_range()
182 current->tgid, num, buf); in smb2_unlock_range()
199 num = 0; in smb2_unlock_range()
203 if (num) { in smb2_unlock_range()
206 num, buf); in smb2_unlock_range()
226 unsigned int num = 0; in smb2_push_mand_fdlocks() local
235 if (++num == max_num) { in smb2_push_mand_fdlocks()
239 current->tgid, num, buf); in smb2_push_mand_fdlocks()
243 num = 0; in smb2_push_mand_fdlocks()
[all …]
Dsmb2pdu.c755 unsigned int num = *num_iovec; in add_posix_context() local
757 iov[num].iov_base = create_posix_buf(mode); in add_posix_context()
760 if (iov[num].iov_base == NULL) in add_posix_context()
762 iov[num].iov_len = sizeof(struct create_posix); in add_posix_context()
766 iov[num - 1].iov_len); in add_posix_context()
768 *num_iovec = num + 1; in add_posix_context()
2078 unsigned int num = *num_iovec; in add_lease_context() local
2080 iov[num].iov_base = server->ops->create_lease_buf(lease_key, *oplock); in add_lease_context()
2081 if (iov[num].iov_base == NULL) in add_lease_context()
2083 iov[num].iov_len = server->vals->create_lease_size; in add_lease_context()
[all …]
/fs/ext2/
Dballoc.c670 unsigned long num = 0; in ext2_try_to_allocate() local
700 for (; num < *count && grp_goal < end; grp_goal++) { in ext2_try_to_allocate()
703 if (num == 0) in ext2_try_to_allocate()
707 num++; in ext2_try_to_allocate()
710 if (num == 0) in ext2_try_to_allocate()
713 *count = num; in ext2_try_to_allocate()
714 return grp_goal - num; in ext2_try_to_allocate()
1074 unsigned long num = *count; in ext2_try_to_allocate_with_rsv() local
1139 &num, &my_rsv->rsv_window); in ext2_try_to_allocate_with_rsv()
1141 my_rsv->rsv_alloc_hit += num; in ext2_try_to_allocate_with_rsv()
[all …]
/fs/ext4/
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()
161 static void str2hashbuf_unsigned(const char *msg, int len, __u32 *buf, int num) in str2hashbuf_unsigned() argument
171 if (len > num*4) in str2hashbuf_unsigned()
172 len = num * 4; in str2hashbuf_unsigned()
178 num--; in str2hashbuf_unsigned()
[all …]
/fs/f2fs/
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/
Dfilelayoutdev.c67 u32 cnt, num; in nfs4_fl_alloc_deviceid_node() local
123 num = be32_to_cpup(p); in nfs4_fl_alloc_deviceid_node()
124 dprintk("%s ds_num %u\n", __func__, num); in nfs4_fl_alloc_deviceid_node()
125 if (num > NFS4_PNFS_MAX_MULTI_CNT) { in nfs4_fl_alloc_deviceid_node()
128 num, NFS4_PNFS_MAX_MULTI_CNT); in nfs4_fl_alloc_deviceid_node()
133 if (max_stripe_index >= num) { in nfs4_fl_alloc_deviceid_node()
135 __func__, max_stripe_index, num); in nfs4_fl_alloc_deviceid_node()
140 (sizeof(struct nfs4_pnfs_ds *) * (num - 1)), in nfs4_fl_alloc_deviceid_node()
148 dsaddr->ds_num = num; in nfs4_fl_alloc_deviceid_node()
/fs/ubifs/
Dlpt.c349 pack_bits(c, &addr, &pos, pnode->num, c->pcnt_bits); in ubifs_pack_pnode()
382 pack_bits(c, &addr, &pos, nnode->num, c->pcnt_bits); in ubifs_pack_nnode()
524 int num, bits; in calc_nnode_num() local
526 num = 1; in calc_nnode_num()
530 num <<= UBIFS_LPT_FANOUT_SHIFT; in calc_nnode_num()
531 num |= bits; in calc_nnode_num()
533 return num; in calc_nnode_num()
551 int num, shft; in calc_nnode_num_from_parent() local
556 num = parent->num ^ (1 << shft); in calc_nnode_num_from_parent()
557 num |= (UBIFS_LPT_FANOUT + iip) << shft; in calc_nnode_num_from_parent()
[all …]
/fs/dlm/
Dmember.c173 int num = 0; in dlm_slots_assign() local
202 num++; in dlm_slots_assign()
222 num = 0; in dlm_slots_assign()
238 num++; in dlm_slots_assign()
255 num++; in dlm_slots_assign()
271 log_slots(ls, gen, num, NULL, array, array_size); in dlm_slots_assign()
276 if (num > max_slots) { in dlm_slots_assign()
278 num, max_slots); in dlm_slots_assign()
286 *num_slots = num; in dlm_slots_assign()
485 int i, num; in dlm_lsop_recover_done() local
[all …]
/fs/gfs2/
Dmeta_io.c213 int num) in gfs2_submit_bhs() argument
215 while (num > 0) { in gfs2_submit_bhs()
219 bio = bio_alloc(GFP_NOIO, num); in gfs2_submit_bhs()
222 while (num > 0) { in gfs2_submit_bhs()
229 num--; in gfs2_submit_bhs()
252 int num = 0; in gfs2_meta_read() local
269 bhs[num++] = bh; in gfs2_meta_read()
281 bhs[num++] = bh; in gfs2_meta_read()
285 gfs2_submit_bhs(REQ_OP_READ, REQ_META | REQ_PRIO, bhs, num); in gfs2_meta_read()
474 int gfs2_meta_indirect_buffer(struct gfs2_inode *ip, int height, u64 num, in gfs2_meta_indirect_buffer() argument
[all …]
/fs/hfs/
Dbnode.c226 static inline int hfs_bnode_hash(u32 num) in hfs_bnode_hash() argument
228 num = (num >> 16) + num; in hfs_bnode_hash()
229 num += num >> 8; in hfs_bnode_hash()
230 return num & (NODE_HASH_SIZE - 1); in hfs_bnode_hash()
328 struct hfs_bnode *hfs_bnode_find(struct hfs_btree *tree, u32 num) in hfs_bnode_find() argument
336 node = hfs_bnode_findhash(tree, num); in hfs_bnode_find()
346 node = __hfs_bnode_create(tree, num); in hfs_bnode_find()
421 struct hfs_bnode *hfs_bnode_create(struct hfs_btree *tree, u32 num) in hfs_bnode_create() argument
428 node = hfs_bnode_findhash(tree, num); in hfs_bnode_create()
431 pr_crit("new node %u already hashed?\n", num); in hfs_bnode_create()
[all …]
/fs/udf/
Ddir.c59 int i, num, ret = 0; in udf_readdir() local
125 for (num = 0; i > 0; i--) { in udf_readdir()
129 bha[num++] = tmp; in udf_readdir()
133 if (num) { in udf_readdir()
134 ll_rw_block(REQ_OP_READ, REQ_RAHEAD, num, bha); in udf_readdir()
135 for (i = 0; i < num; i++) in udf_readdir()
Ddirectory.c29 int i, num; in udf_fileident_read() local
81 for (num = 0; i > 0; i--) { in udf_fileident_read()
87 bha[num++] = tmp; in udf_fileident_read()
91 if (num) { in udf_fileident_read()
92 ll_rw_block(REQ_OP_READ, REQ_RAHEAD, num, bha); in udf_fileident_read()
93 for (i = 0; i < num; i++) in udf_fileident_read()
/fs/hfsplus/
Dbnode.c376 static inline int hfs_bnode_hash(u32 num) in hfs_bnode_hash() argument
378 num = (num >> 16) + num; in hfs_bnode_hash()
379 num += num >> 8; in hfs_bnode_hash()
380 return num & (NODE_HASH_SIZE - 1); in hfs_bnode_hash()
478 struct hfs_bnode *hfs_bnode_find(struct hfs_btree *tree, u32 num) in hfs_bnode_find() argument
486 node = hfs_bnode_findhash(tree, num); in hfs_bnode_find()
497 node = __hfs_bnode_create(tree, num); in hfs_bnode_find()
573 struct hfs_bnode *hfs_bnode_create(struct hfs_btree *tree, u32 num) in hfs_bnode_create() argument
580 node = hfs_bnode_findhash(tree, num); in hfs_bnode_create()
583 pr_crit("new node %u already hashed?\n", num); in hfs_bnode_create()
[all …]
/fs/ceph/
Dsnap.c328 u32 num = realm->num_prior_parent_snaps + realm->num_snaps; in build_snap_context() local
341 num += parent->cached_context->num_snaps; in build_snap_context()
362 if (num > (SIZE_MAX - sizeof(*snapc)) / sizeof(u64)) in build_snap_context()
364 snapc = ceph_create_snap_context(num, GFP_NOFS); in build_snap_context()
369 num = 0; in build_snap_context()
379 snapc->snaps[num++] = in build_snap_context()
384 memcpy(snapc->snaps + num, realm->snaps, in build_snap_context()
386 num += realm->num_snaps; in build_snap_context()
387 memcpy(snapc->snaps + num, realm->prior_parent_snaps, in build_snap_context()
389 num += realm->num_prior_parent_snaps; in build_snap_context()
[all …]
/fs/verity/
Dhash_algs.c42 unsigned int num) in fsverity_get_hash_alg() argument
48 if (num >= ARRAY_SIZE(fsverity_hash_algs) || in fsverity_get_hash_alg()
49 !fsverity_hash_algs[num].name) { in fsverity_get_hash_alg()
50 fsverity_warn(inode, "Unknown hash algorithm number: %u", num); in fsverity_get_hash_alg()
53 alg = &fsverity_hash_algs[num]; in fsverity_get_hash_alg()
/fs/proc/
Dproc_tty.c29 dev_t from, int num) in show_tty_range() argument
33 if (p->num > 1) { in show_tty_range()
35 MINOR(from) + num - 1); in show_tty_range()
73 dev_t to = from + p->num; in show_tty_driver()
/fs/
Dseq_file.c687 unsigned long long num, unsigned int width) in seq_put_decimal_ull_width() argument
707 len = num_to_str(m->buf + m->count, m->size - m->count, num, width); in seq_put_decimal_ull_width()
719 unsigned long long num) in seq_put_decimal_ull() argument
721 return seq_put_decimal_ull_width(m, delimiter, num, 0); in seq_put_decimal_ull()
771 void seq_put_decimal_ll(struct seq_file *m, const char *delimiter, long long num) in seq_put_decimal_ll() argument
788 if (num < 0) { in seq_put_decimal_ll()
790 num = -num; in seq_put_decimal_ll()
793 if (num < 10) { in seq_put_decimal_ll()
794 m->buf[m->count++] = num + '0'; in seq_put_decimal_ll()
798 len = num_to_str(m->buf + m->count, m->size - m->count, num, 0); in seq_put_decimal_ll()
/fs/minix/
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()
Dminix.h127 unsigned short num; in minix_find_first_zero_bit() local
138 num = *--p; in minix_find_first_zero_bit()
139 return ((p - addr) << 4) + ffz(num); in minix_find_first_zero_bit()
/fs/nfsd/
Dnfsctl.c568 int len, num, remaining; in __write_versions() local
592 num = simple_strtol((vers+1), &minorp, 0); in __write_versions()
594 num = simple_strtol(vers, &minorp, 0); in __write_versions()
596 if (num != 4) in __write_versions()
603 switch(num) { in __write_versions()
606 nfsd_vers(nn, num, cmd); in __write_versions()
612 } else if ((cmd == NFSD_SET) != nfsd_vers(nn, num, NFSD_TEST)) { in __write_versions()
638 for (num=2 ; num <= 4 ; num++) { in __write_versions()
640 if (!nfsd_vers(nn, num, NFSD_AVAIL)) in __write_versions()
646 sep, num, minor); in __write_versions()
[all …]
/fs/sysv/
Ditree.c126 int num, in alloc_branch() argument
135 if (branch[0].key) for (n = 1; n < num; n++) { in alloc_branch()
161 if (n == num) in alloc_branch()
175 int num) in splice_branch() argument
200 for (i = 1; i < num; i++) in splice_branch()
202 for (i = 0; i < num; i++) in splice_branch()
/fs/ocfs2/
Docfs2_trace.h11 TP_PROTO(int num),
12 TP_ARGS(num),
14 __field(int, num)
17 __entry->num = num;
19 TP_printk("%d", __entry->num)
24 TP_PROTO(int num), \
25 TP_ARGS(num))
28 TP_PROTO(unsigned int num),
29 TP_ARGS(num),
31 __field( unsigned int, num )
[all …]
/fs/adfs/
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()

1234