Home
last modified time | relevance | path

Searched refs:dsaddr (Results 1 - 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/fs/nfs/filelayout/
H A 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()
214 nfs4_fl_put_deviceid(struct nfs4_file_layout_dsaddr *dsaddr) nfs4_fl_put_deviceid() argument
264 struct nfs4_file_layout_dsaddr *dsaddr = FILELAYOUT_LSEG(lseg)->dsaddr; nfs4_fl_prepare_ds() local
[all...]
H 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);
H A Dfilelayout.c58 u32 stripe_width = flseg->stripe_unit * flseg->dsaddr->stripe_count; in filelayout_get_dense_offset()
543 struct nfs4_file_layout_dsaddr *dsaddr; in filelayout_check_deviceid() local
547 if (fl->dsaddr != NULL) in filelayout_check_deviceid()
556 dsaddr = container_of(d, struct nfs4_file_layout_dsaddr, id_node); in filelayout_check_deviceid()
558 if (filelayout_test_devid_unavailable(&dsaddr->id_node)) in filelayout_check_deviceid()
561 if (fl->first_stripe_index >= dsaddr->stripe_count) { in filelayout_check_deviceid()
568 fl->num_fh > 1 && fl->num_fh != dsaddr->ds_num) || in filelayout_check_deviceid()
570 fl->num_fh != dsaddr->stripe_count)) { in filelayout_check_deviceid()
581 if (cmpxchg(&fl->dsaddr, NULL, dsaddr) ! in filelayout_check_deviceid()
1034 struct nfs4_file_layout_dsaddr *dsaddr; filelayout_alloc_deviceid_node() local
[all...]
/kernel/linux/linux-6.6/fs/nfs/filelayout/
H A 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(struct_size(dsaddr, ds_list, num), gfp_flags); in nfs4_fl_alloc_deviceid_node()
140 if (!dsaddr) in nfs4_fl_alloc_deviceid_node()
212 nfs4_fl_put_deviceid(struct nfs4_file_layout_dsaddr *dsaddr) nfs4_fl_put_deviceid() argument
262 struct nfs4_file_layout_dsaddr *dsaddr = FILELAYOUT_LSEG(lseg)->dsaddr; nfs4_fl_prepare_ds() local
[all...]
H 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);
H A Dfilelayout.c58 u32 stripe_width = flseg->stripe_unit * flseg->dsaddr->stripe_count; in filelayout_get_dense_offset()
543 struct nfs4_file_layout_dsaddr *dsaddr; in filelayout_check_deviceid() local
547 if (fl->dsaddr != NULL) in filelayout_check_deviceid()
556 dsaddr = container_of(d, struct nfs4_file_layout_dsaddr, id_node); in filelayout_check_deviceid()
558 if (filelayout_test_devid_unavailable(&dsaddr->id_node)) in filelayout_check_deviceid()
561 if (fl->first_stripe_index >= dsaddr->stripe_count) { in filelayout_check_deviceid()
568 fl->num_fh > 1 && fl->num_fh != dsaddr->ds_num) || in filelayout_check_deviceid()
570 fl->num_fh != dsaddr->stripe_count)) { in filelayout_check_deviceid()
581 if (cmpxchg(&fl->dsaddr, NULL, dsaddr) ! in filelayout_check_deviceid()
1041 struct nfs4_file_layout_dsaddr *dsaddr; filelayout_alloc_deviceid_node() local
[all...]
/kernel/linux/linux-5.10/fs/nfs/flexfilelayout/
H A Dflexfilelayout.c2094 struct nfs4_ff_layout_ds *dsaddr; in ff_layout_alloc_deviceid_node() local
2096 dsaddr = nfs4_ff_alloc_deviceid_node(server, pdev, gfp_flags); in ff_layout_alloc_deviceid_node()
2097 if (!dsaddr) in ff_layout_alloc_deviceid_node()
2099 return &dsaddr->id_node; in ff_layout_alloc_deviceid_node()
/kernel/linux/linux-6.6/fs/nfs/flexfilelayout/
H A Dflexfilelayout.c2167 struct nfs4_ff_layout_ds *dsaddr; in ff_layout_alloc_deviceid_node() local
2169 dsaddr = nfs4_ff_alloc_deviceid_node(server, pdev, gfp_flags); in ff_layout_alloc_deviceid_node()
2170 if (!dsaddr) in ff_layout_alloc_deviceid_node()
2172 return &dsaddr->id_node; in ff_layout_alloc_deviceid_node()

Completed in 11 milliseconds