/fs/btrfs/ |
D | misc.h | 34 static inline u64 div_factor(u64 num, int factor) in div_factor() argument 37 return num; in div_factor() 38 num *= factor; in div_factor() 39 return div_u64(num, 10); in div_factor() 42 static inline u64 div_factor_fine(u64 num, int factor) in div_factor_fine() argument 45 return num; in div_factor_fine() 46 num *= factor; in div_factor_fine() 47 return div_u64(num, 100); in div_factor_fine()
|
/fs/cifs/ |
D | smb2file.c | 121 unsigned int max_num, num = 0, max_buf; in smb2_unlock_range() local 174 if (++num == max_num) { in smb2_unlock_range() 178 current->tgid, num, buf); in smb2_unlock_range() 195 num = 0; in smb2_unlock_range() 199 if (num) { in smb2_unlock_range() 202 num, buf); in smb2_unlock_range() 222 unsigned int num = 0; in smb2_push_mand_fdlocks() local 231 if (++num == max_num) { in smb2_push_mand_fdlocks() 235 current->tgid, num, buf); in smb2_push_mand_fdlocks() 239 num = 0; in smb2_push_mand_fdlocks() [all …]
|
D | smb2pdu.c | 768 unsigned int num = *num_iovec; in add_posix_context() local 770 iov[num].iov_base = create_posix_buf(mode); in add_posix_context() 773 if (iov[num].iov_base == NULL) in add_posix_context() 775 iov[num].iov_len = sizeof(struct create_posix); in add_posix_context() 779 iov[num - 1].iov_len); in add_posix_context() 781 *num_iovec = num + 1; in add_posix_context() 1960 unsigned int num = *num_iovec; in add_lease_context() local 1962 iov[num].iov_base = server->ops->create_lease_buf(lease_key, *oplock); in add_lease_context() 1963 if (iov[num].iov_base == NULL) in add_lease_context() 1965 iov[num].iov_len = server->vals->create_lease_size; in add_lease_context() [all …]
|
/fs/ext2/ |
D | balloc.c | 671 unsigned long num = 0; in ext2_try_to_allocate() local 728 num++; in ext2_try_to_allocate() 730 while (num < *count && grp_goal < end in ext2_try_to_allocate() 733 num++; in ext2_try_to_allocate() 736 *count = num; in ext2_try_to_allocate() 737 return grp_goal - num; in ext2_try_to_allocate() 739 *count = num; in ext2_try_to_allocate() 1099 unsigned long num = *count; in ext2_try_to_allocate_with_rsv() local 1164 &num, &my_rsv->rsv_window); in ext2_try_to_allocate_with_rsv() 1166 my_rsv->rsv_alloc_hit += num; in ext2_try_to_allocate_with_rsv() [all …]
|
/fs/ext4/ |
D | hash.c | 135 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 …]
|
D | block_validity.c | 195 u32 i = 0, num; in ext4_protect_reserved_inode() local 204 num = (inode->i_size + sb->s_blocksize - 1) >> sb->s_blocksize_bits; in ext4_protect_reserved_inode() 205 while (i < num) { in ext4_protect_reserved_inode() 207 map.m_len = num - i; in ext4_protect_reserved_inode()
|
/fs/gfs2/ |
D | meta_io.c | 213 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 268 bhs[num++] = bh; in gfs2_meta_read() 280 bhs[num++] = bh; in gfs2_meta_read() 284 gfs2_submit_bhs(REQ_OP_READ, REQ_META | REQ_PRIO, bhs, num); in gfs2_meta_read() 402 int gfs2_meta_indirect_buffer(struct gfs2_inode *ip, int height, u64 num, in gfs2_meta_indirect_buffer() argument [all …]
|
/fs/nfs/filelayout/ |
D | filelayoutdev.c | 67 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/ |
D | lpt.c | 349 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/f2fs/ |
D | hash.c | 44 unsigned int *buf, int num) in str2hashbuf() argument 53 if (len > num * 4) in str2hashbuf() 54 len = num * 4; in str2hashbuf() 62 num--; in str2hashbuf() 65 if (--num >= 0) in str2hashbuf() 67 while (--num >= 0) in str2hashbuf()
|
/fs/dlm/ |
D | member.c | 173 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/hfs/ |
D | bnode.c | 211 static inline int hfs_bnode_hash(u32 num) in hfs_bnode_hash() argument 213 num = (num >> 16) + num; in hfs_bnode_hash() 214 num += num >> 8; in hfs_bnode_hash() 215 return num & (NODE_HASH_SIZE - 1); in hfs_bnode_hash() 312 struct hfs_bnode *hfs_bnode_find(struct hfs_btree *tree, u32 num) in hfs_bnode_find() argument 320 node = hfs_bnode_findhash(tree, num); in hfs_bnode_find() 330 node = __hfs_bnode_create(tree, num); in hfs_bnode_find() 405 struct hfs_bnode *hfs_bnode_create(struct hfs_btree *tree, u32 num) in hfs_bnode_create() argument 412 node = hfs_bnode_findhash(tree, num); in hfs_bnode_create() 415 pr_crit("new node %u already hashed?\n", num); in hfs_bnode_create() [all …]
|
/fs/udf/ |
D | dir.c | 58 int i, num, ret = 0; in udf_readdir() local 108 for (num = 0; i > 0; i--) { in udf_readdir() 112 bha[num++] = tmp; in udf_readdir() 116 if (num) { in udf_readdir() 117 ll_rw_block(REQ_OP_READ, REQ_RAHEAD, num, bha); in udf_readdir() 118 for (i = 0; i < num; i++) in udf_readdir()
|
D | directory.c | 29 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/ |
D | bnode.c | 376 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/ |
D | snap.c | 314 u32 num = realm->num_prior_parent_snaps + realm->num_snaps; in build_snap_context() local 327 num += parent->cached_context->num_snaps; in build_snap_context() 348 if (num > (SIZE_MAX - sizeof(*snapc)) / sizeof(u64)) in build_snap_context() 350 snapc = ceph_create_snap_context(num, GFP_NOFS); in build_snap_context() 355 num = 0; in build_snap_context() 365 snapc->snaps[num++] = in build_snap_context() 370 memcpy(snapc->snaps + num, realm->snaps, in build_snap_context() 372 num += realm->num_snaps; in build_snap_context() 373 memcpy(snapc->snaps + num, realm->prior_parent_snaps, in build_snap_context() 375 num += realm->num_prior_parent_snaps; in build_snap_context() [all …]
|
/fs/verity/ |
D | hash_algs.c | 40 unsigned int num) in fsverity_get_hash_alg() argument 46 if (num >= ARRAY_SIZE(fsverity_hash_algs) || in fsverity_get_hash_alg() 47 !fsverity_hash_algs[num].name) { in fsverity_get_hash_alg() 48 fsverity_warn(inode, "Unknown hash algorithm number: %u", num); in fsverity_get_hash_alg() 51 alg = &fsverity_hash_algs[num]; in fsverity_get_hash_alg()
|
/fs/proc/ |
D | proc_tty.c | 29 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/ |
D | seq_file.c | 692 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/minix/ |
D | itree_common.c | 71 int num, in alloc_branch() argument 80 if (parent) for (n = 1; n < num; n++) { in alloc_branch() 98 if (n == num) in alloc_branch() 112 int num) in splice_branch() argument 139 for (i = 1; i < num; i++) in splice_branch() 141 for (i = 0; i < num; i++) in splice_branch()
|
D | minix.h | 128 unsigned short num; in minix_find_first_zero_bit() local 139 num = *--p; in minix_find_first_zero_bit() 140 return ((p - addr) << 4) + ffz(num); in minix_find_first_zero_bit()
|
/fs/nfsd/ |
D | nfsctl.c | 568 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/sdcardfs/ |
D | packagelist.c | 607 unsigned int num; member 613 unsigned int num; member 631 extension_details->name.name, extension_details->num); in extension_details_release() 632 remove_ext_gid_entry(&extension_details->name, extension_details->num); in extension_details_release() 662 extension_details->num = extensions_value->num; in extension_details_make_item() 663 ret = insert_ext_gid_entry(&extension_details->name, extensions_value->num); in extension_details_make_item() 699 extensions_value->num = tmp; in extensions_make_group() 709 pr_info("sdcardfs: No longer mapping any files to gid %d\n", value->num); in extensions_drop_group()
|
/fs/sysv/ |
D | itree.c | 126 int num, in alloc_branch() argument 135 if (branch[0].key) for (n = 1; n < num; n++) { in alloc_branch() 157 if (n == num) in alloc_branch() 171 int num) in splice_branch() argument 196 for (i = 1; i < num; i++) in splice_branch() 198 for (i = 0; i < num; i++) in splice_branch()
|
/fs/ocfs2/ |
D | ocfs2_trace.h | 11 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 …]
|