Home
last modified time | relevance | path

Searched refs:da (Results 1 – 14 of 14) sorted by relevance

/fs/nfsd/
Dflexfilelayout.c82 struct pnfs_ff_device_addr *da; in nfsd4_ff_proc_getdeviceinfo() local
87 da = kzalloc(sizeof(struct pnfs_ff_device_addr), GFP_KERNEL); in nfsd4_ff_proc_getdeviceinfo()
88 if (!da) in nfsd4_ff_proc_getdeviceinfo()
91 gdp->gd_device = da; in nfsd4_ff_proc_getdeviceinfo()
93 da->version = 3; in nfsd4_ff_proc_getdeviceinfo()
94 da->minor_version = 0; in nfsd4_ff_proc_getdeviceinfo()
96 da->rsize = svc_max_payload(rqstp); in nfsd4_ff_proc_getdeviceinfo()
97 da->wsize = da->rsize; in nfsd4_ff_proc_getdeviceinfo()
106 snprintf(da->netaddr.netid, FF_NETID_LEN + 1, "tcp"); in nfsd4_ff_proc_getdeviceinfo()
107 da->netaddr.netid_len = 3; in nfsd4_ff_proc_getdeviceinfo()
[all …]
Dflexfilelayoutxdr.c81 struct pnfs_ff_device_addr *da = gdp->gd_device; in nfsd4_ff_encode_getdeviceinfo() local
88 addr_len = 16 + da->netaddr.netid_len + da->netaddr.addr_len; in nfsd4_ff_encode_getdeviceinfo()
103 p = xdr_encode_opaque(p, da->netaddr.netid, da->netaddr.netid_len); in nfsd4_ff_encode_getdeviceinfo()
104 p = xdr_encode_opaque(p, da->netaddr.addr, da->netaddr.addr_len); in nfsd4_ff_encode_getdeviceinfo()
108 *p++ = cpu_to_be32(da->version); in nfsd4_ff_encode_getdeviceinfo()
109 *p++ = cpu_to_be32(da->minor_version); in nfsd4_ff_encode_getdeviceinfo()
110 *p++ = cpu_to_be32(da->rsize); in nfsd4_ff_encode_getdeviceinfo()
111 *p++ = cpu_to_be32(da->wsize); in nfsd4_ff_encode_getdeviceinfo()
112 *p++ = cpu_to_be32(da->tightly_coupled); in nfsd4_ff_encode_getdeviceinfo()
/fs/nfs/
Dpnfs_nfs.c452 struct nfs4_pnfs_ds_addr *da; in destroy_ds() local
461 da = list_first_entry(&ds->ds_addrs, in destroy_ds()
464 list_del_init(&da->da_node); in destroy_ds()
465 kfree(da->da_remotestr); in destroy_ds()
466 kfree(da); in destroy_ds()
491 struct nfs4_pnfs_ds_addr *da; in nfs4_pnfs_remotestr() local
497 list_for_each_entry(da, dsaddrs, da_node) { in nfs4_pnfs_remotestr()
498 len += strlen(da->da_remotestr) + 1; /* string plus comma */ in nfs4_pnfs_remotestr()
508 list_for_each_entry(da, dsaddrs, da_node) { in nfs4_pnfs_remotestr()
509 size_t ll = strlen(da->da_remotestr); in nfs4_pnfs_remotestr()
[all …]
/fs/nfs/filelayout/
Dfilelayoutdev.c77 struct nfs4_pnfs_ds_addr *da; in nfs4_fl_alloc_deviceid_node() local
163 da = nfs4_decode_mp_ds_addr(server->nfs_client->cl_net, in nfs4_fl_alloc_deviceid_node()
165 if (da) in nfs4_fl_alloc_deviceid_node()
166 list_add_tail(&da->da_node, &dsaddrs); in nfs4_fl_alloc_deviceid_node()
180 da = list_first_entry(&dsaddrs, in nfs4_fl_alloc_deviceid_node()
183 list_del_init(&da->da_node); in nfs4_fl_alloc_deviceid_node()
184 kfree(da->da_remotestr); in nfs4_fl_alloc_deviceid_node()
185 kfree(da); in nfs4_fl_alloc_deviceid_node()
194 da = list_first_entry(&dsaddrs, struct nfs4_pnfs_ds_addr, in nfs4_fl_alloc_deviceid_node()
196 list_del_init(&da->da_node); in nfs4_fl_alloc_deviceid_node()
[all …]
/fs/gfs2/
Ddir.h35 const struct gfs2_inode *ip, struct gfs2_diradd *da);
36 static inline void gfs2_dir_no_add(struct gfs2_diradd *da) in gfs2_dir_no_add() argument
38 if (da->bh) in gfs2_dir_no_add()
39 brelse(da->bh); in gfs2_dir_no_add()
40 da->bh = NULL; in gfs2_dir_no_add()
52 struct gfs2_diradd *da);
Dinode.c508 const struct gfs2_diradd *da, in gfs2_trans_da_blks() argument
511 return da->nr_blocks + gfs2_rg_blocks(dip, da->nr_blocks) + in gfs2_trans_da_blks()
516 struct gfs2_inode *ip, struct gfs2_diradd *da) in link_dinode() argument
519 struct gfs2_alloc_parms ap = { .target = da->nr_blocks, }; in link_dinode()
522 if (da->nr_blocks) { in link_dinode()
531 error = gfs2_trans_begin(sdp, gfs2_trans_da_blks(dip, da, 2), 0); in link_dinode()
540 error = gfs2_dir_add(&dip->i_inode, name, ip, da); in link_dinode()
594 struct gfs2_diradd da = { .bh = NULL, .save_loc = 1, }; in gfs2_create_inode() local
637 error = gfs2_diradd_alloc_required(dir, name, &da); in gfs2_create_inode()
759 error = link_dinode(dip, name, ip, &da); in gfs2_create_inode()
[all …]
Ddir.c1798 const struct gfs2_inode *nip, struct gfs2_diradd *da) in gfs2_dir_add() argument
1801 struct buffer_head *bh = da->bh; in gfs2_dir_add()
1802 struct gfs2_dirent *dent = da->dent; in gfs2_dir_add()
1808 if (da->bh == NULL) { in gfs2_dir_add()
1826 da->dent = NULL; in gfs2_dir_add()
1827 da->bh = NULL; in gfs2_dir_add()
2163 struct gfs2_diradd *da) in gfs2_diradd_alloc_required() argument
2171 da->nr_blocks = 0; in gfs2_diradd_alloc_required()
2172 da->bh = NULL; in gfs2_diradd_alloc_required()
2173 da->dent = NULL; in gfs2_diradd_alloc_required()
[all …]
/fs/nfs/flexfilelayout/
Dflexfilelayoutdev.c46 struct nfs4_pnfs_ds_addr *da; in nfs4_ff_alloc_deviceid_node() local
80 da = nfs4_decode_mp_ds_addr(server->nfs_client->cl_net, in nfs4_ff_alloc_deviceid_node()
82 if (da) in nfs4_ff_alloc_deviceid_node()
83 list_add_tail(&da->da_node, &dsaddrs); in nfs4_ff_alloc_deviceid_node()
146 da = list_first_entry(&dsaddrs, in nfs4_ff_alloc_deviceid_node()
149 list_del_init(&da->da_node); in nfs4_ff_alloc_deviceid_node()
150 kfree(da->da_remotestr); in nfs4_ff_alloc_deviceid_node()
151 kfree(da); in nfs4_ff_alloc_deviceid_node()
159 da = list_first_entry(&dsaddrs, struct nfs4_pnfs_ds_addr, in nfs4_ff_alloc_deviceid_node()
161 list_del_init(&da->da_node); in nfs4_ff_alloc_deviceid_node()
[all …]
Dflexfilelayout.c2084 ff_layout_encode_netaddr(struct xdr_stream *xdr, struct nfs4_pnfs_ds_addr *da) in ff_layout_encode_netaddr() argument
2086 struct sockaddr *sap = (struct sockaddr *)&da->da_addr; in ff_layout_encode_netaddr()
2160 struct nfs4_pnfs_ds_addr *da; in ff_layout_encode_layoutstats() local
2165 da = list_first_entry(&ds->ds_addrs, struct nfs4_pnfs_ds_addr, da_node); in ff_layout_encode_layoutstats()
2167 __func__, ds->ds_remotestr, da->da_remotestr); in ff_layout_encode_layoutstats()
2171 ff_layout_encode_netaddr(xdr, da); in ff_layout_encode_layoutstats()
/fs/logfs/
Djournal.c88 struct logfs_je_anchor *da) in read_anchor() argument
95 super->s_last_ino = be64_to_cpu(da->da_last_ino); in read_anchor()
97 li->li_height = da->da_height; in read_anchor()
98 i_size_write(inode, be64_to_cpu(da->da_size)); in read_anchor()
99 li->li_used_bytes = be64_to_cpu(da->da_used_bytes); in read_anchor()
102 li->li_data[i] = be64_to_cpu(da->da_data[i]); in read_anchor()
519 struct logfs_je_anchor *da = _da; in __logfs_write_anchor() local
524 da->da_height = li->li_height; in __logfs_write_anchor()
525 da->da_last_ino = cpu_to_be64(super->s_last_ino); in __logfs_write_anchor()
526 da->da_size = cpu_to_be64(i_size_read(inode)); in __logfs_write_anchor()
[all …]
/fs/xfs/libxfs/
Dxfs_dir2.h290 xfs_dir2_da_to_db(struct xfs_da_geometry *geo, xfs_dablk_t da) in xfs_dir2_da_to_db() argument
292 return (xfs_dir2_db_t)(da >> (geo->blklog - geo->fsblog)); in xfs_dir2_da_to_db()
299 xfs_dir2_da_to_byte(struct xfs_da_geometry *geo, xfs_dablk_t da) in xfs_dir2_da_to_byte() argument
301 return xfs_dir2_db_off_to_byte(geo, xfs_dir2_da_to_db(geo, da), 0); in xfs_dir2_da_to_byte()
Dxfs_dir2.c677 xfs_dablk_t da; /* directory file offset */ in xfs_dir2_shrink_inode() local
689 da = xfs_dir2_db_to_da(args->geo, db); in xfs_dir2_shrink_inode()
692 error = xfs_bunmapi(tp, dp, da, args->geo->fsbcount, 0, 0, in xfs_dir2_shrink_inode()
724 bno = da; in xfs_dir2_shrink_inode()
/fs/xfs/
Dxfs_ioctl.c1744 struct dioattr da; in xfs_file_ioctl() local
1749 da.d_mem = da.d_miniosz = target->bt_logical_sectorsize; in xfs_file_ioctl()
1750 da.d_maxiosz = INT_MAX & ~(da.d_miniosz - 1); in xfs_file_ioctl()
1752 if (copy_to_user(arg, &da, sizeof(da))) in xfs_file_ioctl()
/fs/kernfs/
Ddir.c62 size_t da, db; in kernfs_common_ancestor() local
68 da = kernfs_depth(ra->kn, a); in kernfs_common_ancestor()
71 while (da > db) { in kernfs_common_ancestor()
73 da--; in kernfs_common_ancestor()
75 while (db > da) { in kernfs_common_ancestor()