Home
last modified time | relevance | path

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

1234

/fs/nfs/
Dpnfs_dev.c82 struct nfs4_deviceid_node *d; in _lookup_deviceid() local
84 hlist_for_each_entry_rcu(d, &nfs4_deviceid_cache[hash], node) in _lookup_deviceid()
85 if (d->ld == ld && d->nfs_client == clp && in _lookup_deviceid()
86 !memcmp(&d->deviceid, id, sizeof(*id))) { in _lookup_deviceid()
87 if (atomic_read(&d->ref)) in _lookup_deviceid()
88 return d; in _lookup_deviceid()
100 struct nfs4_deviceid_node *d = NULL; in nfs4_get_device_info() local
150 d = server->pnfs_curr_ld->alloc_deviceid_node(server, pdev, in nfs4_get_device_info()
152 if (d && pdev->nocache) in nfs4_get_device_info()
153 set_bit(NFS_DEVICEID_NOCACHE, &d->flags); in nfs4_get_device_info()
[all …]
/fs/xfs/
Dxfs_dquot.c96 struct xfs_disk_dquot *d = &dq->q_core; in xfs_qm_adjust_dqlimits() local
100 ASSERT(d->d_id); in xfs_qm_adjust_dqlimits()
103 if (defq->bsoftlimit && !d->d_blk_softlimit) { in xfs_qm_adjust_dqlimits()
104 d->d_blk_softlimit = cpu_to_be64(defq->bsoftlimit); in xfs_qm_adjust_dqlimits()
107 if (defq->bhardlimit && !d->d_blk_hardlimit) { in xfs_qm_adjust_dqlimits()
108 d->d_blk_hardlimit = cpu_to_be64(defq->bhardlimit); in xfs_qm_adjust_dqlimits()
111 if (defq->isoftlimit && !d->d_ino_softlimit) in xfs_qm_adjust_dqlimits()
112 d->d_ino_softlimit = cpu_to_be64(defq->isoftlimit); in xfs_qm_adjust_dqlimits()
113 if (defq->ihardlimit && !d->d_ino_hardlimit) in xfs_qm_adjust_dqlimits()
114 d->d_ino_hardlimit = cpu_to_be64(defq->ihardlimit); in xfs_qm_adjust_dqlimits()
[all …]
Dxfs_trans.h146 #define xfs_trans_agblocks_delta(tp, d) ((tp)->t_ag_freeblks_delta += (int64_t)d) argument
147 #define xfs_trans_agflist_delta(tp, d) ((tp)->t_ag_flist_delta += (int64_t)d) argument
148 #define xfs_trans_agbtree_delta(tp, d) ((tp)->t_ag_btree_delta += (int64_t)d) argument
150 #define xfs_trans_agblocks_delta(tp, d) argument
151 #define xfs_trans_agflist_delta(tp, d) argument
152 #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.c199 struct v2r0_disk_dqblk *d = dp, empty; in v2r0_disk2memdqb() local
202 m->dqb_ihardlimit = le32_to_cpu(d->dqb_ihardlimit); in v2r0_disk2memdqb()
203 m->dqb_isoftlimit = le32_to_cpu(d->dqb_isoftlimit); in v2r0_disk2memdqb()
204 m->dqb_curinodes = le32_to_cpu(d->dqb_curinodes); in v2r0_disk2memdqb()
205 m->dqb_itime = le64_to_cpu(d->dqb_itime); in v2r0_disk2memdqb()
206 m->dqb_bhardlimit = v2_qbtos(le32_to_cpu(d->dqb_bhardlimit)); in v2r0_disk2memdqb()
207 m->dqb_bsoftlimit = v2_qbtos(le32_to_cpu(d->dqb_bsoftlimit)); in v2r0_disk2memdqb()
208 m->dqb_curspace = le64_to_cpu(d->dqb_curspace); in v2r0_disk2memdqb()
209 m->dqb_btime = le64_to_cpu(d->dqb_btime); in v2r0_disk2memdqb()
219 struct v2r0_disk_dqblk *d = dp; in v2r0_mem2diskdqb() local
[all …]
Dquota_v1.c31 static void v1_disk2mem_dqblk(struct mem_dqblk *m, struct v1_disk_dqblk *d) in v1_disk2mem_dqblk() argument
33 m->dqb_ihardlimit = d->dqb_ihardlimit; in v1_disk2mem_dqblk()
34 m->dqb_isoftlimit = d->dqb_isoftlimit; in v1_disk2mem_dqblk()
35 m->dqb_curinodes = d->dqb_curinodes; in v1_disk2mem_dqblk()
36 m->dqb_bhardlimit = v1_qbtos(d->dqb_bhardlimit); in v1_disk2mem_dqblk()
37 m->dqb_bsoftlimit = v1_qbtos(d->dqb_bsoftlimit); in v1_disk2mem_dqblk()
38 m->dqb_curspace = v1_qbtos(d->dqb_curblocks); in v1_disk2mem_dqblk()
39 m->dqb_itime = d->dqb_itime; in v1_disk2mem_dqblk()
40 m->dqb_btime = d->dqb_btime; in v1_disk2mem_dqblk()
43 static void v1_mem2disk_dqblk(struct v1_disk_dqblk *d, struct mem_dqblk *m) in v1_mem2disk_dqblk() argument
[all …]
/fs/ext4/
Dhash.c23 __u32 a = in[0], b = in[1], c = in[2], d = in[3]; in TEA_transform() local
29 b1 += ((b0 << 4)+c) ^ (b0+sum) ^ ((b0 >> 5)+d); in TEA_transform()
47 #define ROUND(f, a, b, c, d, x, s) \ argument
48 (a += f(b, c, d) + x, a = rol32(a, s))
58 __u32 a = buf[0], b = buf[1], c = buf[2], d = buf[3]; in half_md4_transform() local
61 ROUND(F, a, b, c, d, in[0] + K1, 3); in half_md4_transform()
62 ROUND(F, d, a, b, c, in[1] + K1, 7); in half_md4_transform()
63 ROUND(F, c, d, a, b, in[2] + K1, 11); in half_md4_transform()
64 ROUND(F, b, c, d, a, in[3] + K1, 19); in half_md4_transform()
65 ROUND(F, a, b, c, d, in[4] + K1, 3); in half_md4_transform()
[all …]
/fs/overlayfs/
Dnamei.c29 static int ovl_check_redirect(struct dentry *dentry, struct ovl_lookup_data *d, in ovl_check_redirect() argument
67 d->stop = false; in ovl_check_redirect()
73 memcpy(buf, d->name.name, prelen); in ovl_check_redirect()
77 kfree(d->redirect); in ovl_check_redirect()
78 d->redirect = buf; in ovl_check_redirect()
79 d->name.name = d->redirect; in ovl_check_redirect()
80 d->name.len = strlen(d->redirect); in ovl_check_redirect()
201 static int ovl_lookup_single(struct dentry *base, struct ovl_lookup_data *d, in ovl_lookup_single() argument
226 d->stop = d->opaque = true; in ovl_lookup_single()
230 d->stop = true; in ovl_lookup_single()
[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()
95 static void hpfs_pos_ins(loff_t *p, loff_t d, loff_t c) in hpfs_pos_ins() argument
97 if ((*p & ~0x3f) == (d & ~0x3f) && (*p & 0x3f) >= (d & 0x3f)) { in hpfs_pos_ins()
107 static void hpfs_pos_del(loff_t *p, loff_t d, loff_t c) in hpfs_pos_del() argument
109 if ((*p & ~0x3f) == (d & ~0x3f) && (*p & 0x3f) >= (d & 0x3f)) { in hpfs_pos_del()
119 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/cifs/
Dsmb2transport.c355 struct derivation *d; in generate_smb30signingkey() local
357 d = &triplet.signing; in generate_smb30signingkey()
358 d->label.iov_base = "SMB2AESCMAC"; in generate_smb30signingkey()
359 d->label.iov_len = 12; in generate_smb30signingkey()
360 d->context.iov_base = "SmbSign"; in generate_smb30signingkey()
361 d->context.iov_len = 8; in generate_smb30signingkey()
363 d = &triplet.encryption; in generate_smb30signingkey()
364 d->label.iov_base = "SMB2AESCCM"; in generate_smb30signingkey()
365 d->label.iov_len = 11; in generate_smb30signingkey()
366 d->context.iov_base = "ServerIn "; in generate_smb30signingkey()
[all …]
/fs/f2fs/
Dinline.c332 struct f2fs_dentry_ptr d; in f2fs_find_in_inline_dir() local
347 make_dentry_ptr_inline(dir, &d, inline_dentry); in f2fs_find_in_inline_dir()
348 de = f2fs_find_target_dentry(fname, namehash, NULL, &d); in f2fs_find_in_inline_dir()
361 struct f2fs_dentry_ptr d; in f2fs_make_empty_inline_dir() local
366 make_dentry_ptr_inline(inode, &d, inline_dentry); in f2fs_make_empty_inline_dir()
367 f2fs_do_make_empty_dir(inode, parent, &d); in f2fs_make_empty_inline_dir()
451 struct f2fs_dentry_ptr d; in f2fs_add_inline_entries() local
455 make_dentry_ptr_inline(dir, &d, inline_dentry); in f2fs_add_inline_entries()
457 while (bit_pos < d.max) { in f2fs_add_inline_entries()
463 if (!test_bit_le(bit_pos, d.bitmap)) { in f2fs_add_inline_entries()
[all …]
Ddir.c92 struct f2fs_dentry_ptr d; in find_in_block() local
96 make_dentry_ptr_block(NULL, &d, dentry_blk); in find_in_block()
97 de = f2fs_find_target_dentry(fname, namehash, max_slots, &d); in find_in_block()
106 struct f2fs_dentry_ptr *d) in f2fs_find_target_dentry() argument
114 while (bit_pos < d->max) { in f2fs_find_target_dentry()
115 if (!test_bit_le(bit_pos, d->bitmap)) { in f2fs_find_target_dentry()
121 de = &d->dentry[bit_pos]; in f2fs_find_target_dentry()
129 fscrypt_match_name(fname, d->filename[bit_pos], in f2fs_find_target_dentry()
320 struct f2fs_dentry_ptr *d) in f2fs_do_make_empty_dir() argument
326 f2fs_update_dentry(inode->i_ino, inode->i_mode, d, &dot, 0, 0); in f2fs_do_make_empty_dir()
[all …]
/fs/xfs/libxfs/
Dxfs_dquot_buf.c54 xfs_dqblk_t *d = (xfs_dqblk_t *)ddq; in xfs_dqcheck() local
153 memset(d, 0, sizeof(xfs_dqblk_t)); in xfs_dqcheck()
155 d->dd_diskdq.d_magic = cpu_to_be16(XFS_DQUOT_MAGIC); in xfs_dqcheck()
156 d->dd_diskdq.d_version = XFS_DQUOT_VERSION; in xfs_dqcheck()
157 d->dd_diskdq.d_flags = type; in xfs_dqcheck()
158 d->dd_diskdq.d_id = cpu_to_be32(id); in xfs_dqcheck()
161 uuid_copy(&d->dd_uuid, &mp->m_sb.sb_meta_uuid); in xfs_dqcheck()
162 xfs_update_cksum((char *)d, sizeof(struct xfs_dqblk), in xfs_dqcheck()
174 struct xfs_dqblk *d = (struct xfs_dqblk *)bp->b_addr; in xfs_dquot_buf_verify_crc() local
191 for (i = 0; i < ndquots; i++, d++) { in xfs_dquot_buf_verify_crc()
[all …]
/fs/
Ddcookies.c97 struct dentry *d; in alloc_dcookie() local
101 d = path->dentry; in alloc_dcookie()
102 spin_lock(&d->d_lock); in alloc_dcookie()
103 d->d_flags |= DCACHE_COOKIE; in alloc_dcookie()
104 spin_unlock(&d->d_lock); in alloc_dcookie()
219 struct list_head * d; in dcookie_init() local
255 d = dcookie_hashtable; in dcookie_init()
258 INIT_LIST_HEAD(d); in dcookie_init()
259 d++; in dcookie_init()
273 struct dentry *d = dcs->path.dentry; in free_dcookie() local
[all …]
/fs/ubifs/
Ddebug.c976 struct ubifs_debug_info *d = c->dbg; in dbg_save_space_info() local
980 memcpy(&d->saved_lst, &c->lst, sizeof(struct ubifs_lp_stats)); in dbg_save_space_info()
981 memcpy(&d->saved_bi, &c->bi, sizeof(struct ubifs_budg_info)); in dbg_save_space_info()
982 d->saved_idx_gc_cnt = c->idx_gc_cnt; in dbg_save_space_info()
1010 d->saved_free = ubifs_get_free_space_nolock(c); in dbg_save_space_info()
1026 struct ubifs_debug_info *d = c->dbg; in dbg_check_space_info() local
1038 if (free != d->saved_free) { in dbg_check_space_info()
1040 d->saved_free, free); in dbg_check_space_info()
1048 ubifs_dump_lstats(&d->saved_lst); in dbg_check_space_info()
1050 ubifs_dump_budg(c, &d->saved_bi); in dbg_check_space_info()
[all …]
Dlpt_commit.c1784 struct ubifs_debug_info *d = c->dbg; in dbg_chk_lpt_sz() local
1793 d->chk_lpt_sz = 0; in dbg_chk_lpt_sz()
1794 d->chk_lpt_sz2 = 0; in dbg_chk_lpt_sz()
1795 d->chk_lpt_lebs = 0; in dbg_chk_lpt_sz()
1796 d->chk_lpt_wastage = 0; in dbg_chk_lpt_sz()
1809 d->chk_lpt_sz += len; in dbg_chk_lpt_sz()
1812 d->chk_lpt_sz += len; in dbg_chk_lpt_sz()
1813 d->chk_lpt_wastage += len; in dbg_chk_lpt_sz()
1814 d->chk_lpt_lebs += 1; in dbg_chk_lpt_sz()
1818 chk_lpt_sz *= d->chk_lpt_lebs; in dbg_chk_lpt_sz()
[all …]
Dcommit.c530 struct ubifs_debug_info *d = c->dbg; in dbg_old_index_check_init() local
532 d->old_zroot = *zroot; in dbg_old_index_check_init()
533 lnum = d->old_zroot.lnum; in dbg_old_index_check_init()
534 offs = d->old_zroot.offs; in dbg_old_index_check_init()
535 len = d->old_zroot.len; in dbg_old_index_check_init()
545 d->old_zroot_level = le16_to_cpu(idx->level); in dbg_old_index_check_init()
546 d->old_zroot_sqnum = le64_to_cpu(idx->ch.sqnum); in dbg_old_index_check_init()
569 struct ubifs_debug_info *d = c->dbg; in dbg_check_old_index() local
586 lnum = d->old_zroot.lnum; in dbg_check_old_index()
587 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/fuse/
Dinode.c483 static int parse_fuse_opt(char *opt, struct fuse_mount_data *d, int is_bdev) in parse_fuse_opt() argument
486 memset(d, 0, sizeof(struct fuse_mount_data)); in parse_fuse_opt()
487 d->max_read = ~0; in parse_fuse_opt()
488 d->blksize = FUSE_DEFAULT_BLKSIZE; in parse_fuse_opt()
503 d->fd = value; in parse_fuse_opt()
504 d->fd_present = 1; in parse_fuse_opt()
512 d->rootmode = value; in parse_fuse_opt()
513 d->rootmode_present = 1; in parse_fuse_opt()
519 d->user_id = make_kuid(current_user_ns(), uv); in parse_fuse_opt()
520 if (!uid_valid(d->user_id)) in parse_fuse_opt()
[all …]
/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.c72 struct ocfs2_global_disk_dqblk *d = dp; in ocfs2_global_disk2memdqb() local
77 m->dqb_ihardlimit = le64_to_cpu(d->dqb_ihardlimit); in ocfs2_global_disk2memdqb()
78 m->dqb_isoftlimit = le64_to_cpu(d->dqb_isoftlimit); in ocfs2_global_disk2memdqb()
81 m->dqb_curinodes = le64_to_cpu(d->dqb_curinodes); in ocfs2_global_disk2memdqb()
83 m->dqb_bhardlimit = le64_to_cpu(d->dqb_bhardlimit); in ocfs2_global_disk2memdqb()
84 m->dqb_bsoftlimit = le64_to_cpu(d->dqb_bsoftlimit); in ocfs2_global_disk2memdqb()
87 m->dqb_curspace = le64_to_cpu(d->dqb_curspace); in ocfs2_global_disk2memdqb()
89 m->dqb_btime = le64_to_cpu(d->dqb_btime); in ocfs2_global_disk2memdqb()
91 m->dqb_itime = le64_to_cpu(d->dqb_itime); in ocfs2_global_disk2memdqb()
92 OCFS2_DQUOT(dquot)->dq_use_count = le32_to_cpu(d->dqb_use_count); in ocfs2_global_disk2memdqb()
[all …]
/fs/sysv/
Dsysv.h211 static inline __fs32 fs32_add(struct sysv_sb_info *sbi, __fs32 *n, int d) in fs32_add() argument
214 *(__u32*)n = PDP_swab(PDP_swab(*(__u32*)n)+d); in fs32_add()
216 le32_add_cpu((__le32 *)n, d); in fs32_add()
218 be32_add_cpu((__be32 *)n, d); in fs32_add()
238 static inline __fs16 fs16_add(struct sysv_sb_info *sbi, __fs16 *n, int d) in fs16_add() argument
241 le16_add_cpu((__le16 *)n, d); in fs16_add()
243 be16_add_cpu((__be16 *)n, d); in fs16_add()
/fs/nfsd/
Dblocklayout.c220 u8 *buf, *d, type, assoc; in nfsd4_scsi_identify_device() local
263 d = buf + 4; in nfsd4_scsi_identify_device()
264 for (d = buf + 4; d < buf + len; d += id_len + 4) { in nfsd4_scsi_identify_device()
265 id_len = d[3]; in nfsd4_scsi_identify_device()
266 type = d[1] & 0xf; in nfsd4_scsi_identify_device()
267 assoc = (d[1] >> 4) & 0x3; in nfsd4_scsi_identify_device()
284 memcpy(b->scsi.designator, d + 4, id_len); in nfsd4_scsi_identify_device()
/fs/sdcardfs/
Dsuper.c200 struct sdcardfs_inode_data *d; in sdcardfs_alloc_inode() local
209 d = kmem_cache_alloc(sdcardfs_inode_data_cachep, in sdcardfs_alloc_inode()
211 if (!d) { in sdcardfs_alloc_inode()
216 i->data = d; in sdcardfs_alloc_inode()
217 kref_init(&d->refcount); in sdcardfs_alloc_inode()
218 i->top_data = d; in sdcardfs_alloc_inode()
220 kref_get(&d->refcount); in sdcardfs_alloc_inode()

1234