/fs/ |
D | char_dev.c | 53 struct char_device_struct *cd; in chrdev_show() local 56 for (cd = chrdevs[major_to_index(offset)]; cd; cd = cd->next) { in chrdev_show() 57 if (cd->major == offset) in chrdev_show() 58 seq_printf(f, "%3d %s\n", cd->major, cd->name); in chrdev_show() 68 struct char_device_struct *cd; in find_dynamic_major() local 77 for (cd = chrdevs[major_to_index(i)]; cd; cd = cd->next) in find_dynamic_major() 78 if (cd->major == i) in find_dynamic_major() 81 if (cd == NULL) in find_dynamic_major() 100 struct char_device_struct *cd, *curr, *prev = NULL; in __register_chrdev_region() local 116 cd = kzalloc(sizeof(struct char_device_struct), GFP_KERNEL); in __register_chrdev_region() [all …]
|
/fs/nfs/ |
D | cache_lib.c | 35 int nfs_cache_upcall(struct cache_detail *cd, char *entry_name) in nfs_cache_upcall() argument 44 cd->name, in nfs_cache_upcall() 116 int nfs_cache_register_sb(struct super_block *sb, struct cache_detail *cd) in nfs_cache_register_sb() argument 122 ret = sunrpc_cache_register_pipefs(dir, cd->name, 0600, cd); in nfs_cache_register_sb() 127 int nfs_cache_register_net(struct net *net, struct cache_detail *cd) in nfs_cache_register_net() argument 132 sunrpc_init_cache_detail(cd); in nfs_cache_register_net() 135 ret = nfs_cache_register_sb(pipefs_sb, cd); in nfs_cache_register_net() 138 sunrpc_destroy_cache_detail(cd); in nfs_cache_register_net() 143 void nfs_cache_unregister_sb(struct super_block *sb, struct cache_detail *cd) in nfs_cache_unregister_sb() argument 145 sunrpc_cache_unregister_pipefs(cd); in nfs_cache_unregister_sb() [all …]
|
D | dns_resolve.c | 141 static void nfs_dns_request(struct cache_detail *cd, in nfs_dns_request() argument 151 static int nfs_dns_upcall(struct cache_detail *cd, in nfs_dns_upcall() argument 157 ret = nfs_cache_upcall(cd, key->hostname); in nfs_dns_upcall() 159 ret = sunrpc_cache_pipe_upcall(cd, ch); in nfs_dns_upcall() 177 static int nfs_dns_show(struct seq_file *m, struct cache_detail *cd, in nfs_dns_show() argument 203 static struct nfs_dns_ent *nfs_dns_lookup(struct cache_detail *cd, in nfs_dns_lookup() argument 208 ch = sunrpc_cache_lookup_rcu(cd, in nfs_dns_lookup() 216 static struct nfs_dns_ent *nfs_dns_update(struct cache_detail *cd, in nfs_dns_update() argument 222 ch = sunrpc_cache_update(cd, in nfs_dns_update() 230 static int nfs_dns_parse(struct cache_detail *cd, char *buf, int buflen) in nfs_dns_parse() argument [all …]
|
D | cache_lib.h | 22 extern int nfs_cache_upcall(struct cache_detail *cd, char *entry_name); 27 extern int nfs_cache_register_net(struct net *net, struct cache_detail *cd); 28 extern void nfs_cache_unregister_net(struct net *net, struct cache_detail *cd); 30 struct cache_detail *cd); 32 struct cache_detail *cd);
|
/fs/nfsd/ |
D | nfs3xdr.c | 833 encode_entry_baggage(struct nfsd3_readdirres *cd, __be32 *p, const char *name, in encode_entry_baggage() argument 840 cd->offset = p; /* remember pointer */ in encode_entry_baggage() 847 compose_entry_fh(struct nfsd3_readdirres *cd, struct svc_fh *fhp, in compose_entry_fh() argument 854 dparent = cd->fh.fh_dentry; in compose_entry_fh() 855 exp = cd->fh.fh_export; in compose_entry_fh() 875 rv = fh_compose(fhp, exp, dchild, &cd->fh); in compose_entry_fh() 881 static __be32 *encode_entryplus_baggage(struct nfsd3_readdirres *cd, __be32 *p, const char *name, i… in encode_entryplus_baggage() argument 883 struct svc_fh *fh = &cd->scratch; in encode_entryplus_baggage() 887 err = compose_entry_fh(cd, fh, name, namlen, ino); in encode_entryplus_baggage() 893 p = encode_post_op_attr(cd->rqstp, p, fh); in encode_entryplus_baggage() [all …]
|
D | export.c | 53 static void expkey_request(struct cache_detail *cd, in expkey_request() argument 68 static struct svc_expkey *svc_expkey_update(struct cache_detail *cd, struct svc_expkey *new, 70 static struct svc_expkey *svc_expkey_lookup(struct cache_detail *cd, struct svc_expkey *); 72 static int expkey_parse(struct cache_detail *cd, char *mesg, int mlen) in expkey_parse() argument 128 ek = svc_expkey_lookup(cd, &key); in expkey_parse() 142 ek = svc_expkey_update(cd, &key, ek); in expkey_parse() 152 ek = svc_expkey_update(cd, &key, ek); in expkey_parse() 160 cache_put(&ek->h, cd); in expkey_parse() 168 struct cache_detail *cd, in expkey_show() argument 276 svc_expkey_lookup(struct cache_detail *cd, struct svc_expkey *item) in svc_expkey_lookup() argument [all …]
|
D | nfs4idmap.c | 126 idtoname_request(struct cache_detail *cd, struct cache_head *ch, char **bpp, in idtoname_request() argument 151 idtoname_show(struct seq_file *m, struct cache_detail *cd, struct cache_head *h) in idtoname_show() argument 198 idtoname_parse(struct cache_detail *cd, char *buf, int buflen) in idtoname_parse() argument 240 res = idtoname_lookup(cd, &ent); in idtoname_parse() 254 res = idtoname_update(cd, &ent, res); in idtoname_parse() 258 cache_put(&res->h, cd); in idtoname_parse() 266 idtoname_lookup(struct cache_detail *cd, struct ent *item) in idtoname_lookup() argument 268 struct cache_head *ch = sunrpc_cache_lookup_rcu(cd, &item->h, in idtoname_lookup() 277 idtoname_update(struct cache_detail *cd, struct ent *new, struct ent *old) in idtoname_update() argument 279 struct cache_head *ch = sunrpc_cache_update(cd, &new->h, &old->h, in idtoname_update() [all …]
|
D | nfsxdr.c | 521 struct nfsd_readdirres *cd = container_of(ccd, struct nfsd_readdirres, common); in nfssvc_encode_entry() local 522 __be32 *p = cd->buffer; in nfssvc_encode_entry() 531 cd->common.err = nfserr_fbig; in nfssvc_encode_entry() 534 if (cd->offset) in nfssvc_encode_entry() 535 *cd->offset = htonl(offset); in nfssvc_encode_entry() 541 if ((buflen = cd->buflen - slen - 4) < 0) { in nfssvc_encode_entry() 542 cd->common.err = nfserr_toosmall; in nfssvc_encode_entry() 546 cd->common.err = nfserr_fbig; in nfssvc_encode_entry() 552 cd->offset = p; /* remember pointer */ in nfssvc_encode_entry() 555 cd->buflen = buflen; in nfssvc_encode_entry() [all …]
|
D | export.h | 63 struct cache_detail *cd; member 107 cache_put(&exp->h, exp->cd); in exp_put()
|
D | nfs4xdr.c | 2003 *p++ = cpu_to_be32(convert_to_wallclock(exp->cd->flush_time)); in encode_change() 2986 nfsd4_encode_dirent_fattr(struct xdr_stream *xdr, struct nfsd4_readdir *cd, in nfsd4_encode_dirent_fattr() argument 2989 struct svc_export *exp = cd->rd_fhp->fh_export; in nfsd4_encode_dirent_fattr() 2994 dentry = lookup_one_len_unlocked(name, cd->rd_fhp->fh_dentry, namlen); in nfsd4_encode_dirent_fattr() 3019 && !attributes_need_mount(cd->rd_bmval)) { in nfsd4_encode_dirent_fattr() 3028 err = nfsd_cross_mnt(cd->rd_rqstp, &dentry, &exp); in nfsd4_encode_dirent_fattr() 3033 nfserr = check_nfsd_access(exp, cd->rd_rqstp); in nfsd4_encode_dirent_fattr() 3039 nfserr = nfsd4_encode_fattr(xdr, NULL, exp, dentry, cd->rd_bmval, in nfsd4_encode_dirent_fattr() 3040 cd->rd_rqstp, ignore_crossmnt); in nfsd4_encode_dirent_fattr() 3069 struct nfsd4_readdir *cd = container_of(ccd, struct nfsd4_readdir, common); in nfsd4_encode_dirent() local [all …]
|
/fs/jfs/ |
D | jfs_txnmgr.c | 152 struct tlock * tlck, struct commit * cd); 163 struct commit * cd); 1128 struct commit cd; in txCommit() local 1145 sb = cd.sb = iplist[0]->i_sb; in txCommit() 1146 cd.tid = tid; in txCommit() 1156 cd.log = log; in txCommit() 1159 lrd = &cd.lrd; in txCommit() 1175 cd.iplist = iplist; in txCommit() 1176 cd.nip = nip; in txCommit() 1190 for (k = 0; k < cd.nip; k++) { in txCommit() [all …]
|