Home
last modified time | relevance | path

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

/linux-4.1.27/fs/nfs/filelayout/
Dfilelayoutdev.c45 nfs4_fl_free_deviceid(struct nfs4_file_layout_dsaddr *dsaddr) in nfs4_fl_free_deviceid() argument
50 nfs4_print_deviceid(&dsaddr->id_node.deviceid); in nfs4_fl_free_deviceid()
52 for (i = 0; i < dsaddr->ds_num; i++) { in nfs4_fl_free_deviceid()
53 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()
72 struct nfs4_file_layout_dsaddr *dsaddr = NULL; in nfs4_fl_alloc_deviceid_node() local
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()
[all …]
Dfilelayout.h64 struct nfs4_file_layout_dsaddr *dsaddr; /* Point to GETDEVINFO data */ member
91 return &FILELAYOUT_LSEG(lseg)->dsaddr->id_node; in FILELAYOUT_DEVID_NODE()
114 extern void nfs4_fl_put_deviceid(struct nfs4_file_layout_dsaddr *dsaddr);
115 extern void nfs4_fl_free_deviceid(struct nfs4_file_layout_dsaddr *dsaddr);
Dfilelayout.c56 u32 stripe_width = flseg->stripe_unit * flseg->dsaddr->stripe_count; in filelayout_get_dense_offset()
569 struct nfs4_file_layout_dsaddr *dsaddr; in filelayout_check_layout() local
600 dsaddr = container_of(d, struct nfs4_file_layout_dsaddr, id_node); in filelayout_check_layout()
602 if (filelayout_test_devid_unavailable(&dsaddr->id_node)) in filelayout_check_layout()
605 fl->dsaddr = dsaddr; in filelayout_check_layout()
607 if (fl->first_stripe_index >= dsaddr->stripe_count) { in filelayout_check_layout()
614 fl->num_fh > 1 && fl->num_fh != dsaddr->ds_num) || in filelayout_check_layout()
616 fl->num_fh != dsaddr->stripe_count)) { in filelayout_check_layout()
627 nfs4_fl_put_deviceid(dsaddr); in filelayout_check_layout()
747 nfs4_fl_put_deviceid(fl->dsaddr); in filelayout_free_lseg()
[all …]
/linux-4.1.27/fs/nfs/flexfilelayout/
Dflexfilelayout.c1467 struct nfs4_ff_layout_ds *dsaddr; in ff_layout_alloc_deviceid_node() local
1469 dsaddr = nfs4_ff_alloc_deviceid_node(server, pdev, gfp_flags); in ff_layout_alloc_deviceid_node()
1470 if (!dsaddr) in ff_layout_alloc_deviceid_node()
1472 return &dsaddr->id_node; in ff_layout_alloc_deviceid_node()