Home
last modified time | relevance | path

Searched refs:d (Results 1 – 25 of 101) sorted by relevance

12345

/fs/nfs/
Dpnfs_dev.c81 struct nfs4_deviceid_node *d; in _lookup_deviceid() local
83 hlist_for_each_entry_rcu(d, &nfs4_deviceid_cache[hash], node) in _lookup_deviceid()
84 if (d->ld == ld && d->nfs_client == clp && in _lookup_deviceid()
85 !memcmp(&d->deviceid, id, sizeof(*id))) { in _lookup_deviceid()
86 if (atomic_read(&d->ref)) in _lookup_deviceid()
87 return d; in _lookup_deviceid()
99 struct nfs4_deviceid_node *d = NULL; in nfs4_get_device_info() local
149 d = server->pnfs_curr_ld->alloc_deviceid_node(server, pdev, in nfs4_get_device_info()
151 if (d && pdev->nocache) in nfs4_get_device_info()
152 set_bit(NFS_DEVICEID_NOCACHE, &d->flags); in nfs4_get_device_info()
[all …]
/fs/xfs/
Dxfs_dquot.c73 struct xfs_disk_dquot *d = &dq->q_core; in xfs_qm_adjust_dqlimits() local
77 ASSERT(d->d_id); in xfs_qm_adjust_dqlimits()
80 if (defq->bsoftlimit && !d->d_blk_softlimit) { in xfs_qm_adjust_dqlimits()
81 d->d_blk_softlimit = cpu_to_be64(defq->bsoftlimit); in xfs_qm_adjust_dqlimits()
84 if (defq->bhardlimit && !d->d_blk_hardlimit) { in xfs_qm_adjust_dqlimits()
85 d->d_blk_hardlimit = cpu_to_be64(defq->bhardlimit); in xfs_qm_adjust_dqlimits()
88 if (defq->isoftlimit && !d->d_ino_softlimit) in xfs_qm_adjust_dqlimits()
89 d->d_ino_softlimit = cpu_to_be64(defq->isoftlimit); in xfs_qm_adjust_dqlimits()
90 if (defq->ihardlimit && !d->d_ino_hardlimit) in xfs_qm_adjust_dqlimits()
91 d->d_ino_hardlimit = cpu_to_be64(defq->ihardlimit); in xfs_qm_adjust_dqlimits()
[all …]
Dxfs_trans.h153 #define xfs_trans_agblocks_delta(tp, d) ((tp)->t_ag_freeblks_delta += (int64_t)d) argument
154 #define xfs_trans_agflist_delta(tp, d) ((tp)->t_ag_flist_delta += (int64_t)d) argument
155 #define xfs_trans_agbtree_delta(tp, d) ((tp)->t_ag_btree_delta += (int64_t)d) argument
157 #define xfs_trans_agblocks_delta(tp, d) argument
158 #define xfs_trans_agflist_delta(tp, d) argument
159 #define xfs_trans_agbtree_delta(tp, d) argument
/fs/nfs/blocklayout/
Ddev.c43 bl_free_deviceid_node(struct nfs4_deviceid_node *d) in bl_free_deviceid_node() argument
46 container_of(d, struct pnfs_block_dev, node); in bl_free_deviceid_node()
230 bl_parse_deviceid(struct nfs_server *server, struct pnfs_block_dev *d,
235 bl_parse_simple(struct nfs_server *server, struct pnfs_block_dev *d, in bl_parse_simple() argument
252 d->bdev = bdev; in bl_parse_simple()
255 d->len = i_size_read(d->bdev->bd_inode); in bl_parse_simple()
256 d->map = bl_map_simple; in bl_parse_simple()
259 d->bdev->bd_disk->disk_name); in bl_parse_simple()
352 bl_parse_scsi(struct nfs_server *server, struct pnfs_block_dev *d, in bl_parse_scsi() argument
368 d->bdev = bdev; in bl_parse_scsi()
[all …]
/fs/quota/
Dquota_v2.c200 struct v2r0_disk_dqblk *d = dp, empty; in v2r0_disk2memdqb() local
203 m->dqb_ihardlimit = le32_to_cpu(d->dqb_ihardlimit); in v2r0_disk2memdqb()
204 m->dqb_isoftlimit = le32_to_cpu(d->dqb_isoftlimit); in v2r0_disk2memdqb()
205 m->dqb_curinodes = le32_to_cpu(d->dqb_curinodes); in v2r0_disk2memdqb()
206 m->dqb_itime = le64_to_cpu(d->dqb_itime); in v2r0_disk2memdqb()
207 m->dqb_bhardlimit = v2_qbtos(le32_to_cpu(d->dqb_bhardlimit)); in v2r0_disk2memdqb()
208 m->dqb_bsoftlimit = v2_qbtos(le32_to_cpu(d->dqb_bsoftlimit)); in v2r0_disk2memdqb()
209 m->dqb_curspace = le64_to_cpu(d->dqb_curspace); in v2r0_disk2memdqb()
210 m->dqb_btime = le64_to_cpu(d->dqb_btime); in v2r0_disk2memdqb()
220 struct v2r0_disk_dqblk *d = dp; in v2r0_mem2diskdqb() local
[all …]
Dquota_v1.c32 static void v1_disk2mem_dqblk(struct mem_dqblk *m, struct v1_disk_dqblk *d) in v1_disk2mem_dqblk() argument
34 m->dqb_ihardlimit = d->dqb_ihardlimit; in v1_disk2mem_dqblk()
35 m->dqb_isoftlimit = d->dqb_isoftlimit; in v1_disk2mem_dqblk()
36 m->dqb_curinodes = d->dqb_curinodes; in v1_disk2mem_dqblk()
37 m->dqb_bhardlimit = v1_qbtos(d->dqb_bhardlimit); in v1_disk2mem_dqblk()
38 m->dqb_bsoftlimit = v1_qbtos(d->dqb_bsoftlimit); in v1_disk2mem_dqblk()
39 m->dqb_curspace = v1_qbtos(d->dqb_curblocks); in v1_disk2mem_dqblk()
40 m->dqb_itime = d->dqb_itime; in v1_disk2mem_dqblk()
41 m->dqb_btime = d->dqb_btime; in v1_disk2mem_dqblk()
44 static void v1_mem2disk_dqblk(struct v1_disk_dqblk *d, struct mem_dqblk *m) in v1_mem2disk_dqblk() argument
[all …]
/fs/overlayfs/
Dnamei.c28 static int ovl_check_redirect(struct dentry *dentry, struct ovl_lookup_data *d, in ovl_check_redirect() argument
47 d->stop = false; in ovl_check_redirect()
51 memcpy(buf, d->name.name, prelen); in ovl_check_redirect()
55 kfree(d->redirect); in ovl_check_redirect()
56 d->redirect = buf; in ovl_check_redirect()
57 d->name.name = d->redirect; in ovl_check_redirect()
58 d->name.len = strlen(d->redirect); in ovl_check_redirect()
196 static int ovl_lookup_single(struct dentry *base, struct ovl_lookup_data *d, in ovl_lookup_single() argument
222 d->stop = d->opaque = true; in ovl_lookup_single()
229 if (last_element && d->metacopy && !d_is_reg(this)) { in ovl_lookup_single()
[all …]
/fs/ext4/
Dhash.c20 __u32 a = in[0], b = in[1], c = in[2], d = in[3]; in TEA_transform() local
26 b1 += ((b0 << 4)+c) ^ (b0+sum) ^ ((b0 >> 5)+d); in TEA_transform()
44 #define ROUND(f, a, b, c, d, x, s) \ argument
45 (a += f(b, c, d) + x, a = rol32(a, s))
55 __u32 a = buf[0], b = buf[1], c = buf[2], d = buf[3]; in half_md4_transform() local
58 ROUND(F, a, b, c, d, in[0] + K1, 3); in half_md4_transform()
59 ROUND(F, d, a, b, c, in[1] + K1, 7); in half_md4_transform()
60 ROUND(F, c, d, a, b, in[2] + K1, 11); in half_md4_transform()
61 ROUND(F, b, c, d, a, in[3] + K1, 19); in half_md4_transform()
62 ROUND(F, a, b, c, d, in[4] + K1, 3); in half_md4_transform()
[all …]
/fs/hpfs/
Ddnode.c12 static loff_t get_pos(struct dnode *d, struct hpfs_dirent *fde) in get_pos() argument
15 struct hpfs_dirent *de_end = dnode_end_de(d); in get_pos()
17 for (de = dnode_first_de(d); de < de_end; de = de_next_de(de)) { in get_pos()
18 if (de == fde) return ((loff_t) le32_to_cpu(d->self) << 4) | (loff_t)i; in get_pos()
22 return ((loff_t)le32_to_cpu(d->self) << 4) | (loff_t)1; in get_pos()
96 static void hpfs_pos_ins(loff_t *p, loff_t d, loff_t c) in hpfs_pos_ins() argument
98 if ((*p & ~0x3f) == (d & ~0x3f) && (*p & 0x3f) >= (d & 0x3f)) { in hpfs_pos_ins()
108 static void hpfs_pos_del(loff_t *p, loff_t d, loff_t c) in hpfs_pos_del() argument
110 if ((*p & ~0x3f) == (d & ~0x3f) && (*p & 0x3f) >= (d & 0x3f)) { in hpfs_pos_del()
120 static struct hpfs_dirent *dnode_pre_last_de(struct dnode *d) in dnode_pre_last_de() argument
[all …]
/fs/ufs/
Dswab.h63 fs32_add(struct super_block *sbp, __fs32 *n, int d) in fs32_add() argument
66 le32_add_cpu((__le32 *)n, d); in fs32_add()
68 be32_add_cpu((__be32 *)n, d); in fs32_add()
72 fs32_sub(struct super_block *sbp, __fs32 *n, int d) in fs32_sub() argument
75 le32_add_cpu((__le32 *)n, -d); in fs32_sub()
77 be32_add_cpu((__be32 *)n, -d); in fs32_sub()
99 fs16_add(struct super_block *sbp, __fs16 *n, int d) in fs16_add() argument
102 le16_add_cpu((__le16 *)n, d); in fs16_add()
104 be16_add_cpu((__be16 *)n, d); in fs16_add()
108 fs16_sub(struct super_block *sbp, __fs16 *n, int d) in fs16_sub() argument
[all …]
/fs/verity/
Dsignature.c44 struct fsverity_signed_digest *d; in fsverity_verify_signature() local
61 d = kzalloc(sizeof(*d) + hash_alg->digest_size, GFP_KERNEL); in fsverity_verify_signature()
62 if (!d) in fsverity_verify_signature()
64 memcpy(d->magic, "FSVerity", 8); in fsverity_verify_signature()
65 d->digest_algorithm = cpu_to_le16(hash_alg - fsverity_hash_algs); in fsverity_verify_signature()
66 d->digest_size = cpu_to_le16(hash_alg->digest_size); in fsverity_verify_signature()
67 memcpy(d->digest, vi->measurement, hash_alg->digest_size); in fsverity_verify_signature()
69 err = verify_pkcs7_signature(d, sizeof(*d) + hash_alg->digest_size, in fsverity_verify_signature()
74 kfree(d); in fsverity_verify_signature()
/fs/cifs/
Dsmb2transport.c375 struct derivation *d; in generate_smb30signingkey() local
377 d = &triplet.signing; in generate_smb30signingkey()
378 d->label.iov_base = "SMB2AESCMAC"; in generate_smb30signingkey()
379 d->label.iov_len = 12; in generate_smb30signingkey()
380 d->context.iov_base = "SmbSign"; in generate_smb30signingkey()
381 d->context.iov_len = 8; in generate_smb30signingkey()
383 d = &triplet.encryption; in generate_smb30signingkey()
384 d->label.iov_base = "SMB2AESCCM"; in generate_smb30signingkey()
385 d->label.iov_len = 11; in generate_smb30signingkey()
386 d->context.iov_base = "ServerIn "; in generate_smb30signingkey()
[all …]
/fs/f2fs/
Dinline.c331 struct f2fs_dentry_ptr d; in f2fs_find_in_inline_dir() local
346 make_dentry_ptr_inline(dir, &d, inline_dentry); in f2fs_find_in_inline_dir()
347 de = f2fs_find_target_dentry(fname, namehash, NULL, &d); in f2fs_find_in_inline_dir()
360 struct f2fs_dentry_ptr d; in f2fs_make_empty_inline_dir() local
365 make_dentry_ptr_inline(inode, &d, inline_dentry); in f2fs_make_empty_inline_dir()
366 f2fs_do_make_empty_dir(inode, parent, &d); in f2fs_make_empty_inline_dir()
456 struct f2fs_dentry_ptr d; in f2fs_add_inline_entries() local
460 make_dentry_ptr_inline(dir, &d, inline_dentry); in f2fs_add_inline_entries()
462 while (bit_pos < d.max) { in f2fs_add_inline_entries()
468 if (!test_bit_le(bit_pos, d.bitmap)) { in f2fs_add_inline_entries()
[all …]
Ddir.c94 struct f2fs_dentry_ptr d; in find_in_block() local
98 make_dentry_ptr_block(dir, &d, dentry_blk); in find_in_block()
99 de = f2fs_find_target_dentry(fname, namehash, max_slots, &d); in find_in_block()
167 static inline bool f2fs_match_name(struct f2fs_dentry_ptr *d, in f2fs_match_name() argument
175 struct inode *parent = d->inode; in f2fs_match_name()
184 entry.name = d->filename[bit_pos]; in f2fs_match_name()
197 if (fscrypt_match_name(fname, d->filename[bit_pos], in f2fs_match_name()
205 struct f2fs_dentry_ptr *d) in f2fs_find_target_dentry() argument
213 f2fs_fname_setup_ci_filename(d->inode, fname->usr_fname, &cf_str); in f2fs_find_target_dentry()
218 while (bit_pos < d->max) { in f2fs_find_target_dentry()
[all …]
/fs/xfs/scrub/
Dquota.c82 struct xfs_disk_dquot *d = &dq->q_core; in xchk_quota_item() local
95 xfs_dqid_t id = be32_to_cpu(d->d_id); in xchk_quota_item()
108 if (dqtype != (d->d_flags & XFS_DQ_ALLTYPES)) in xchk_quota_item()
111 if (d->d_pad0 != cpu_to_be32(0) || d->d_pad != cpu_to_be16(0)) in xchk_quota_item()
115 bhard = be64_to_cpu(d->d_blk_hardlimit); in xchk_quota_item()
116 ihard = be64_to_cpu(d->d_ino_hardlimit); in xchk_quota_item()
117 rhard = be64_to_cpu(d->d_rtb_hardlimit); in xchk_quota_item()
119 bsoft = be64_to_cpu(d->d_blk_softlimit); in xchk_quota_item()
120 isoft = be64_to_cpu(d->d_ino_softlimit); in xchk_quota_item()
121 rsoft = be64_to_cpu(d->d_rtb_softlimit); in xchk_quota_item()
[all …]
/fs/
Ddcookies.c98 struct dentry *d; in alloc_dcookie() local
102 d = path->dentry; in alloc_dcookie()
103 spin_lock(&d->d_lock); in alloc_dcookie()
104 d->d_flags |= DCACHE_COOKIE; in alloc_dcookie()
105 spin_unlock(&d->d_lock); in alloc_dcookie()
225 struct list_head * d; in dcookie_init() local
261 d = dcookie_hashtable; in dcookie_init()
264 INIT_LIST_HEAD(d); in dcookie_init()
265 d++; in dcookie_init()
279 struct dentry *d = dcs->path.dentry; in free_dcookie() local
[all …]
/fs/ubifs/
Ddebug.c970 struct ubifs_debug_info *d = c->dbg; in dbg_save_space_info() local
974 memcpy(&d->saved_lst, &c->lst, sizeof(struct ubifs_lp_stats)); in dbg_save_space_info()
975 memcpy(&d->saved_bi, &c->bi, sizeof(struct ubifs_budg_info)); in dbg_save_space_info()
976 d->saved_idx_gc_cnt = c->idx_gc_cnt; in dbg_save_space_info()
1004 d->saved_free = ubifs_get_free_space_nolock(c); in dbg_save_space_info()
1020 struct ubifs_debug_info *d = c->dbg; in dbg_check_space_info() local
1032 if (free != d->saved_free) { in dbg_check_space_info()
1034 d->saved_free, free); in dbg_check_space_info()
1042 ubifs_dump_lstats(&d->saved_lst); in dbg_check_space_info()
1044 ubifs_dump_budg(c, &d->saved_bi); in dbg_check_space_info()
[all …]
Dlpt_commit.c1746 struct ubifs_debug_info *d = c->dbg; in dbg_chk_lpt_sz() local
1755 d->chk_lpt_sz = 0; in dbg_chk_lpt_sz()
1756 d->chk_lpt_sz2 = 0; in dbg_chk_lpt_sz()
1757 d->chk_lpt_lebs = 0; in dbg_chk_lpt_sz()
1758 d->chk_lpt_wastage = 0; in dbg_chk_lpt_sz()
1771 d->chk_lpt_sz += len; in dbg_chk_lpt_sz()
1774 d->chk_lpt_sz += len; in dbg_chk_lpt_sz()
1775 d->chk_lpt_wastage += len; in dbg_chk_lpt_sz()
1776 d->chk_lpt_lebs += 1; in dbg_chk_lpt_sz()
1780 chk_lpt_sz *= d->chk_lpt_lebs; in dbg_chk_lpt_sz()
[all …]
Dcommit.c518 struct ubifs_debug_info *d = c->dbg; in dbg_old_index_check_init() local
520 d->old_zroot = *zroot; in dbg_old_index_check_init()
521 lnum = d->old_zroot.lnum; in dbg_old_index_check_init()
522 offs = d->old_zroot.offs; in dbg_old_index_check_init()
523 len = d->old_zroot.len; in dbg_old_index_check_init()
533 d->old_zroot_level = le16_to_cpu(idx->level); in dbg_old_index_check_init()
534 d->old_zroot_sqnum = le64_to_cpu(idx->ch.sqnum); in dbg_old_index_check_init()
557 struct ubifs_debug_info *d = c->dbg; in dbg_check_old_index() local
574 lnum = d->old_zroot.lnum; in dbg_check_old_index()
575 offs = d->old_zroot.offs; in dbg_check_old_index()
[all …]
/fs/reiserfs/
Dhashes.c37 b1 += ((b0 << 4)+c) ^ (b0+sum) ^ ((b0 >> 5)+d); \
49 u32 a, b, c, d; in keyed_hash() local
66 d = (u32) msg[12] | in keyed_hash()
85 d = pad; in keyed_hash()
87 d <<= 8; in keyed_hash()
88 d |= msg[i]; in keyed_hash()
96 c = d = pad; in keyed_hash()
105 b = c = d = pad; in keyed_hash()
111 a = b = c = d = pad; in keyed_hash()
/fs/jffs2/
Dsummary.c79 s->sum_size += JFFS2_SUMMARY_DIRENT_SIZE(item->d.nsize); in jffs2_sum_add_mem()
82 je32_to_cpu(item->d.ino)); in jffs2_sum_add_mem()
283 kmalloc(sizeof(struct jffs2_sum_dirent_mem) + node->d.nsize, GFP_KERNEL); in jffs2_sum_add_kvec()
288 temp->nodetype = node->d.nodetype; in jffs2_sum_add_kvec()
289 temp->totlen = node->d.totlen; in jffs2_sum_add_kvec()
291 temp->pino = node->d.pino; in jffs2_sum_add_kvec()
292 temp->version = node->d.version; in jffs2_sum_add_kvec()
293 temp->ino = node->d.ino; in jffs2_sum_add_kvec()
294 temp->nsize = node->d.nsize; in jffs2_sum_add_kvec()
295 temp->type = node->d.type; in jffs2_sum_add_kvec()
[all …]
/fs/ocfs2/
Dquota_global.c73 struct ocfs2_global_disk_dqblk *d = dp; in ocfs2_global_disk2memdqb() local
78 m->dqb_ihardlimit = le64_to_cpu(d->dqb_ihardlimit); in ocfs2_global_disk2memdqb()
79 m->dqb_isoftlimit = le64_to_cpu(d->dqb_isoftlimit); in ocfs2_global_disk2memdqb()
82 m->dqb_curinodes = le64_to_cpu(d->dqb_curinodes); in ocfs2_global_disk2memdqb()
84 m->dqb_bhardlimit = le64_to_cpu(d->dqb_bhardlimit); in ocfs2_global_disk2memdqb()
85 m->dqb_bsoftlimit = le64_to_cpu(d->dqb_bsoftlimit); in ocfs2_global_disk2memdqb()
88 m->dqb_curspace = le64_to_cpu(d->dqb_curspace); in ocfs2_global_disk2memdqb()
90 m->dqb_btime = le64_to_cpu(d->dqb_btime); in ocfs2_global_disk2memdqb()
92 m->dqb_itime = le64_to_cpu(d->dqb_itime); in ocfs2_global_disk2memdqb()
93 OCFS2_DQUOT(dquot)->dq_use_count = le32_to_cpu(d->dqb_use_count); in ocfs2_global_disk2memdqb()
[all …]
/fs/sysv/
Dsysv.h208 static inline __fs32 fs32_add(struct sysv_sb_info *sbi, __fs32 *n, int d) in fs32_add() argument
211 *(__u32*)n = PDP_swab(PDP_swab(*(__u32*)n)+d); in fs32_add()
213 le32_add_cpu((__le32 *)n, d); in fs32_add()
215 be32_add_cpu((__be32 *)n, d); in fs32_add()
235 static inline __fs16 fs16_add(struct sysv_sb_info *sbi, __fs16 *n, int d) in fs16_add() argument
238 le16_add_cpu((__le16 *)n, d); in fs16_add()
240 be16_add_cpu((__be16 *)n, d); in fs16_add()
/fs/nfsd/
Dblocklayout.c228 u8 *buf, *d, type, assoc; in nfsd4_scsi_identify_device() local
278 d = buf + 4; in nfsd4_scsi_identify_device()
279 for (d = buf + 4; d < buf + len; d += id_len + 4) { in nfsd4_scsi_identify_device()
280 id_len = d[3]; in nfsd4_scsi_identify_device()
281 type = d[1] & 0xf; in nfsd4_scsi_identify_device()
282 assoc = (d[1] >> 4) & 0x3; in nfsd4_scsi_identify_device()
299 memcpy(b->scsi.designator, d + 4, id_len); in nfsd4_scsi_identify_device()
/fs/sdcardfs/
Dsuper.c163 struct sdcardfs_inode_data *d; in sdcardfs_alloc_inode() local
172 d = kmem_cache_alloc(sdcardfs_inode_data_cachep, in sdcardfs_alloc_inode()
174 if (!d) { in sdcardfs_alloc_inode()
179 i->data = d; in sdcardfs_alloc_inode()
180 kref_init(&d->refcount); in sdcardfs_alloc_inode()
181 i->top_data = d; in sdcardfs_alloc_inode()
183 kref_get(&d->refcount); in sdcardfs_alloc_inode()

12345