Home
last modified time | relevance | path

Searched refs:dsaddr (Results 1 – 4 of 4) sorted by relevance

/linux/fs/nfs/filelayout/
A Dfilelayoutdev.c53 ds = dsaddr->ds_list[i]; in nfs4_fl_free_deviceid()
57 kfree(dsaddr->stripe_indices); in nfs4_fl_free_deviceid()
58 kfree_rcu(dsaddr, id_node.rcu); in nfs4_fl_free_deviceid()
139 dsaddr = kzalloc(sizeof(*dsaddr) + in nfs4_fl_alloc_deviceid_node()
142 if (!dsaddr) in nfs4_fl_alloc_deviceid_node()
145 dsaddr->stripe_count = cnt; in nfs4_fl_alloc_deviceid_node()
148 dsaddr->ds_num = num; in nfs4_fl_alloc_deviceid_node()
175 if (!dsaddr->ds_list[i]) in nfs4_fl_alloc_deviceid_node()
190 return dsaddr; in nfs4_fl_alloc_deviceid_node()
201 nfs4_fl_free_deviceid(dsaddr); in nfs4_fl_alloc_deviceid_node()
[all …]
A Dfilelayout.h65 struct nfs4_file_layout_dsaddr *dsaddr; /* Point to GETDEVINFO data */ member
92 return &FILELAYOUT_LSEG(lseg)->dsaddr->id_node; in FILELAYOUT_DEVID_NODE()
115 extern void nfs4_fl_put_deviceid(struct nfs4_file_layout_dsaddr *dsaddr);
116 extern void nfs4_fl_free_deviceid(struct nfs4_file_layout_dsaddr *dsaddr);
A Dfilelayout.c541 struct nfs4_file_layout_dsaddr *dsaddr; in filelayout_check_deviceid() local
545 if (fl->dsaddr != NULL) in filelayout_check_deviceid()
568 fl->num_fh != dsaddr->stripe_count)) { in filelayout_check_deviceid()
579 if (cmpxchg(&fl->dsaddr, NULL, dsaddr) != NULL) in filelayout_check_deviceid()
584 nfs4_fl_put_deviceid(dsaddr); in filelayout_check_deviceid()
747 if (fl->dsaddr != NULL) in filelayout_free_lseg()
748 nfs4_fl_put_deviceid(fl->dsaddr); in filelayout_free_lseg()
1024 struct nfs4_file_layout_dsaddr *dsaddr; in filelayout_alloc_deviceid_node() local
1027 if (!dsaddr) in filelayout_alloc_deviceid_node()
1029 return &dsaddr->id_node; in filelayout_alloc_deviceid_node()
[all …]
/linux/fs/nfs/flexfilelayout/
A Dflexfilelayout.c2087 struct nfs4_ff_layout_ds *dsaddr; in ff_layout_alloc_deviceid_node() local
2089 dsaddr = nfs4_ff_alloc_deviceid_node(server, pdev, gfp_flags); in ff_layout_alloc_deviceid_node()
2090 if (!dsaddr) in ff_layout_alloc_deviceid_node()
2092 return &dsaddr->id_node; in ff_layout_alloc_deviceid_node()

Completed in 16 milliseconds