Motr  M0
balloc_xc.c
Go to the documentation of this file.
1 /* This file is automatically generated from balloc/balloc.h */
2 
3 #include "lib/misc.h" /* offsetof */
4 #include "lib/assert.h"
5 #include "xcode/xcode.h"
6 
7 #include "balloc/balloc.h"
8 #include "balloc/balloc_xc.h"
9 
10 #if !defined(__KERNEL__)
12 #endif
13 #if !defined(__KERNEL__)
15 #endif
16 #if !defined(__KERNEL__)
18 #endif
19 
20 #if !defined(__KERNEL__)
21 static struct _m0_balloc_s {
23  struct m0_xcode_field _child[11];
24 } _m0_balloc = {
25  ._type = {
27  .xct_name = "m0_balloc",
28  .xct_sizeof = sizeof (struct m0_balloc),
29  .xct_nr = 11,
30  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_BE,
31  }
32 };
33 
35 M0_BASSERT(offsetof(struct _m0_balloc_s, _child[0]) ==
36  offsetof(struct m0_xcode_type, xct_child[0]));
37 #endif
38 
39 #if !defined(__KERNEL__)
40 static struct _m0_balloc_group_desc_s {
44  ._type = {
46  .xct_name = "m0_balloc_group_desc",
47  .xct_sizeof = sizeof (struct m0_balloc_group_desc),
48  .xct_nr = 6,
49  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_BE,
50  }
51 };
52 
54 M0_BASSERT(offsetof(struct _m0_balloc_group_desc_s, _child[0]) ==
55  offsetof(struct m0_xcode_type, xct_child[0]));
56 #endif
57 
58 #if !defined(__KERNEL__)
59 static struct _m0_balloc_super_block_s {
61  struct m0_xcode_field _child[19];
63  ._type = {
65  .xct_name = "m0_balloc_super_block",
66  .xct_sizeof = sizeof (struct m0_balloc_super_block),
67  .xct_nr = 19,
68  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_BE,
69  }
70 };
71 
73 M0_BASSERT(offsetof(struct _m0_balloc_super_block_s, _child[0]) ==
74  offsetof(struct m0_xcode_type, xct_child[0]));
75 #endif
76 
77 
78 #if !defined(__KERNEL__)
79 M0_BASSERT(sizeof(struct m0_balloc) == 1016U);
80 #endif
81 
82 #if !defined(__KERNEL__)
83 M0_BASSERT(sizeof ((struct m0_balloc *)0)->cb_header == 16U);
84 M0_BASSERT(offsetof(struct m0_balloc, cb_header) == 0U);
85 #endif
86 #if !defined(__KERNEL__)
87 M0_BASSERT(sizeof ((struct m0_balloc *)0)->cb_container_id == 8U);
89 #endif
90 #if !defined(__KERNEL__)
91 M0_BASSERT(sizeof ((struct m0_balloc *)0)->cb_sb == 264U);
92 M0_BASSERT(offsetof(struct m0_balloc, cb_sb) == 24U);
93 #endif
94 #if !defined(__KERNEL__)
95 M0_BASSERT(sizeof ((struct m0_balloc *)0)->cb_last == 8U);
96 M0_BASSERT(offsetof(struct m0_balloc, cb_last) == 288U);
97 #endif
98 #if !defined(__KERNEL__)
99 M0_BASSERT(sizeof ((struct m0_balloc *)0)->cb_ballroom == 8U);
100 M0_BASSERT(offsetof(struct m0_balloc, cb_ballroom) == 296U);
101 #endif
102 #if !defined(__KERNEL__)
103 M0_BASSERT(sizeof ((struct m0_balloc *)0)->cb_footer == 16U);
104 M0_BASSERT(offsetof(struct m0_balloc, cb_footer) == 304U);
105 #endif
106 #if !defined(__KERNEL__)
107 M0_BASSERT(sizeof ((struct m0_balloc *)0)->cb_db_group_extents == 256U);
109 #endif
110 #if !defined(__KERNEL__)
111 M0_BASSERT(sizeof ((struct m0_balloc *)0)->cb_db_group_desc == 256U);
113 #endif
114 #if !defined(__KERNEL__)
115 M0_BASSERT(sizeof ((struct m0_balloc *)0)->cb_group_info == 8U);
116 M0_BASSERT(offsetof(struct m0_balloc, cb_group_info) == 832U);
117 #endif
118 #if !defined(__KERNEL__)
119 M0_BASSERT(sizeof ((struct m0_balloc *)0)->cb_sb_mutex == 168U);
120 M0_BASSERT(offsetof(struct m0_balloc, cb_sb_mutex) == 840U);
121 #endif
122 #if !defined(__KERNEL__)
123 M0_BASSERT(sizeof ((struct m0_balloc *)0)->cb_be_seg == 8U);
124 M0_BASSERT(offsetof(struct m0_balloc, cb_be_seg) == 1008U);
125 #endif
126 
127 #if !defined(__KERNEL__)
128 M0_BASSERT(sizeof(struct m0_balloc_group_desc) == 64U);
129 #endif
130 
131 #if !defined(__KERNEL__)
132 M0_BASSERT(sizeof ((struct m0_balloc_group_desc *)0)->bgd_header == 16U);
134 #endif
135 #if !defined(__KERNEL__)
136 M0_BASSERT(sizeof ((struct m0_balloc_group_desc *)0)->bgd_groupno == 8U);
138 #endif
139 #if !defined(__KERNEL__)
140 M0_BASSERT(sizeof ((struct m0_balloc_group_desc *)0)->bgd_freeblocks == 8U);
142 #endif
143 #if !defined(__KERNEL__)
144 M0_BASSERT(sizeof ((struct m0_balloc_group_desc *)0)->bgd_fragments == 8U);
146 #endif
147 #if !defined(__KERNEL__)
148 M0_BASSERT(sizeof ((struct m0_balloc_group_desc *)0)->bgd_maxchunk == 8U);
150 #endif
151 #if !defined(__KERNEL__)
152 M0_BASSERT(sizeof ((struct m0_balloc_group_desc *)0)->bgd_footer == 16U);
154 #endif
155 
156 #if !defined(__KERNEL__)
157 M0_BASSERT(sizeof(struct m0_balloc_super_block) == 264U);
158 #endif
159 
160 #if !defined(__KERNEL__)
161 M0_BASSERT(sizeof ((struct m0_balloc_super_block *)0)->bsb_magic == 8U);
163 #endif
164 #if !defined(__KERNEL__)
165 M0_BASSERT(sizeof ((struct m0_balloc_super_block *)0)->bsb_state == 8U);
167 #endif
168 #if !defined(__KERNEL__)
169 M0_BASSERT(sizeof ((struct m0_balloc_super_block *)0)->bsb_version == 8U);
171 #endif
172 #if !defined(__KERNEL__)
173 M0_BASSERT(sizeof ((struct m0_balloc_super_block *)0)->bsb_uuid == 128U);
175 #endif
176 #if !defined(__KERNEL__)
177 M0_BASSERT(sizeof ((struct m0_balloc_super_block *)0)->bsb_totalsize == 8U);
179 #endif
180 #if !defined(__KERNEL__)
181 M0_BASSERT(sizeof ((struct m0_balloc_super_block *)0)->bsb_freeblocks == 8U);
183 #endif
184 #if !defined(__KERNEL__)
185 M0_BASSERT(sizeof ((struct m0_balloc_super_block *)0)->bsb_blocksize == 8U);
187 #endif
188 #if !defined(__KERNEL__)
189 M0_BASSERT(sizeof ((struct m0_balloc_super_block *)0)->bsb_groupsize == 8U);
191 #endif
192 #if !defined(__KERNEL__)
193 M0_BASSERT(sizeof ((struct m0_balloc_super_block *)0)->bsb_bsbits == 4U);
195 #endif
196 #if !defined(__KERNEL__)
197 M0_BASSERT(sizeof ((struct m0_balloc_super_block *)0)->bsb_gsbits == 4U);
199 #endif
200 #if !defined(__KERNEL__)
201 M0_BASSERT(sizeof ((struct m0_balloc_super_block *)0)->bsb_groupcount == 8U);
203 #endif
204 #if !defined(__KERNEL__)
205 M0_BASSERT(sizeof ((struct m0_balloc_super_block *)0)->bsb_prealloc_count == 8U);
207 #endif
208 #if !defined(__KERNEL__)
209 M0_BASSERT(sizeof ((struct m0_balloc_super_block *)0)->bsb_format_time == 8U);
211 #endif
212 #if !defined(__KERNEL__)
213 M0_BASSERT(sizeof ((struct m0_balloc_super_block *)0)->bsb_write_time == 8U);
215 #endif
216 #if !defined(__KERNEL__)
217 M0_BASSERT(sizeof ((struct m0_balloc_super_block *)0)->bsb_mnt_time == 8U);
219 #endif
220 #if !defined(__KERNEL__)
221 M0_BASSERT(sizeof ((struct m0_balloc_super_block *)0)->bsb_last_check_time == 8U);
223 #endif
224 #if !defined(__KERNEL__)
225 M0_BASSERT(sizeof ((struct m0_balloc_super_block *)0)->bsb_mnt_count == 8U);
227 #endif
228 #if !defined(__KERNEL__)
229 M0_BASSERT(sizeof ((struct m0_balloc_super_block *)0)->bsb_max_mnt_count == 8U);
231 #endif
232 #if !defined(__KERNEL__)
233 M0_BASSERT(sizeof ((struct m0_balloc_super_block *)0)->bsb_stripe_size == 8U);
235 #endif
236 
237 
238 
239 #if !defined(__KERNEL__)
240 M0_INTERNAL void m0_xc_m0_balloc_struct_init(void)
241 {
242  _m0_balloc._child[0] = (struct m0_xcode_field) {
243  .xf_name = "cb_header",
244 
245  .xf_type = m0_format_header_xc,
246 
247  .xf_tag = 0,
248  .xf_opaque = NULL,
249  .xf_offset = offsetof(struct m0_balloc, cb_header),
250  .xf_read = NULL,
251  .xf_decor = {
253  }
254  };
256 
257  _m0_balloc._child[1] = (struct m0_xcode_field) {
258  .xf_name = "cb_container_id",
259 
260  .xf_type = &M0_XT_U64,
261 
262  .xf_tag = 0,
263  .xf_opaque = NULL,
264  .xf_offset = offsetof(struct m0_balloc, cb_container_id),
265  .xf_read = NULL,
266  .xf_decor = {
268  }
269  };
270  m0_xc_u64_init();
271 
272  _m0_balloc._child[2] = (struct m0_xcode_field) {
273  .xf_name = "cb_sb",
274 #ifdef __KERNEL__
275  .xf_type = &M0_XT_VOID,
276 #else
277 
278  .xf_type = m0_balloc_super_block_xc,
279 #endif
280  .xf_tag = 0,
281  .xf_opaque = NULL,
282  .xf_offset = offsetof(struct m0_balloc, cb_sb),
283  .xf_read = NULL,
284  .xf_decor = {
286  }
287  };
288 #if !defined(__KERNEL__)
290 #endif
291 
292  _m0_balloc._child[3] = (struct m0_xcode_field) {
293  .xf_name = "cb_last",
294 
295  .xf_type = &M0_XT_U64,
296 
297  .xf_tag = 0,
298  .xf_opaque = NULL,
299  .xf_offset = offsetof(struct m0_balloc, cb_last),
300  .xf_read = NULL,
301  .xf_decor = {
303  }
304  };
305  m0_xc_u64_init();
306 
307  _m0_balloc._child[4] = (struct m0_xcode_field) {
308  .xf_name = "cb_ballroom",
309 #ifdef __KERNEL__
310  .xf_type = &M0_XT_VOID,
311 #else
312 
313  .xf_type = m0_ad_balloc_xc,
314 #endif
315  .xf_tag = 0,
316  .xf_opaque = NULL,
317  .xf_offset = offsetof(struct m0_balloc, cb_ballroom),
318  .xf_read = NULL,
319  .xf_decor = {
321  }
322  };
323 #if !defined(__KERNEL__)
325 #endif
326 
327  _m0_balloc._child[5] = (struct m0_xcode_field) {
328  .xf_name = "cb_footer",
329 
330  .xf_type = m0_format_footer_xc,
331 
332  .xf_tag = 0,
333  .xf_opaque = NULL,
334  .xf_offset = offsetof(struct m0_balloc, cb_footer),
335  .xf_read = NULL,
336  .xf_decor = {
338  }
339  };
341 
342  _m0_balloc._child[6] = (struct m0_xcode_field) {
343  .xf_name = "cb_db_group_extents",
344 #ifdef __KERNEL__
345  .xf_type = &M0_XT_VOID,
346 #else
347 
348  .xf_type = m0_be_btree_xc,
349 #endif
350  .xf_tag = 0,
351  .xf_opaque = NULL,
352  .xf_offset = offsetof(struct m0_balloc, cb_db_group_extents),
353  .xf_read = NULL,
354  .xf_decor = {
356  }
357  };
358 #if !defined(__KERNEL__)
360 #endif
361 
362  _m0_balloc._child[7] = (struct m0_xcode_field) {
363  .xf_name = "cb_db_group_desc",
364 #ifdef __KERNEL__
365  .xf_type = &M0_XT_VOID,
366 #else
367 
368  .xf_type = m0_be_btree_xc,
369 #endif
370  .xf_tag = 0,
371  .xf_opaque = NULL,
372  .xf_offset = offsetof(struct m0_balloc, cb_db_group_desc),
373  .xf_read = NULL,
374  .xf_decor = {
376  }
377  };
378 #if !defined(__KERNEL__)
380 #endif
381 
382  _m0_balloc._child[8] = (struct m0_xcode_field) {
383  .xf_name = "cb_group_info",
384 
385  .xf_type = &M0_XT_U64,
386 
387  .xf_tag = 0,
388  .xf_opaque = NULL,
389  .xf_offset = offsetof(struct m0_balloc, cb_group_info),
390  .xf_read = NULL,
391  .xf_decor = {
393  }
394  };
395  m0_xc_u64_init();
396 
397  _m0_balloc._child[9] = (struct m0_xcode_field) {
398  .xf_name = "cb_sb_mutex",
399 #ifdef __KERNEL__
400  .xf_type = &M0_XT_VOID,
401 #else
402 
403  .xf_type = m0_be_mutex_xc,
404 #endif
405  .xf_tag = 0,
406  .xf_opaque = NULL,
407  .xf_offset = offsetof(struct m0_balloc, cb_sb_mutex),
408  .xf_read = NULL,
409  .xf_decor = {
411  }
412  };
413 #if !defined(__KERNEL__)
415 #endif
416 
417  _m0_balloc._child[10] = (struct m0_xcode_field) {
418  .xf_name = "cb_be_seg",
419 
420  .xf_type = &M0_XT_U64,
421 
422  .xf_tag = 0,
423  .xf_opaque = NULL,
424  .xf_offset = offsetof(struct m0_balloc, cb_be_seg),
425  .xf_read = NULL,
426  .xf_decor = {
428  }
429  };
430  m0_xc_u64_init();
431 
433 }
434 #endif
435 
436 #if !defined(__KERNEL__)
438 {
440  .xf_name = "bgd_header",
441 
442  .xf_type = m0_format_header_xc,
443 
444  .xf_tag = 0,
445  .xf_opaque = NULL,
446  .xf_offset = offsetof(struct m0_balloc_group_desc, bgd_header),
447  .xf_read = NULL,
448  .xf_decor = {
450  }
451  };
453 
455  .xf_name = "bgd_groupno",
456 
457  .xf_type = &M0_XT_U64,
458 
459  .xf_tag = 0,
460  .xf_opaque = NULL,
461  .xf_offset = offsetof(struct m0_balloc_group_desc, bgd_groupno),
462  .xf_read = NULL,
463  .xf_decor = {
465  }
466  };
467  m0_xc_u64_init();
468 
470  .xf_name = "bgd_freeblocks",
471 
472  .xf_type = &M0_XT_U64,
473 
474  .xf_tag = 0,
475  .xf_opaque = NULL,
476  .xf_offset = offsetof(struct m0_balloc_group_desc, bgd_freeblocks),
477  .xf_read = NULL,
478  .xf_decor = {
480  }
481  };
482  m0_xc_u64_init();
483 
485  .xf_name = "bgd_fragments",
486 
487  .xf_type = &M0_XT_U64,
488 
489  .xf_tag = 0,
490  .xf_opaque = NULL,
491  .xf_offset = offsetof(struct m0_balloc_group_desc, bgd_fragments),
492  .xf_read = NULL,
493  .xf_decor = {
495  }
496  };
497  m0_xc_u64_init();
498 
500  .xf_name = "bgd_maxchunk",
501 
502  .xf_type = &M0_XT_U64,
503 
504  .xf_tag = 0,
505  .xf_opaque = NULL,
506  .xf_offset = offsetof(struct m0_balloc_group_desc, bgd_maxchunk),
507  .xf_read = NULL,
508  .xf_decor = {
510  }
511  };
512  m0_xc_u64_init();
513 
515  .xf_name = "bgd_footer",
516 
517  .xf_type = m0_format_footer_xc,
518 
519  .xf_tag = 0,
520  .xf_opaque = NULL,
521  .xf_offset = offsetof(struct m0_balloc_group_desc, bgd_footer),
522  .xf_read = NULL,
523  .xf_decor = {
525  }
526  };
528 
530 }
531 #endif
532 
533 #if !defined(__KERNEL__)
535 {
537  .xf_name = "bsb_magic",
538 
539  .xf_type = &M0_XT_U64,
540 
541  .xf_tag = 0,
542  .xf_opaque = NULL,
543  .xf_offset = offsetof(struct m0_balloc_super_block, bsb_magic),
544  .xf_read = NULL,
545  .xf_decor = {
547  }
548  };
549  m0_xc_u64_init();
550 
552  .xf_name = "bsb_state",
553 
554  .xf_type = &M0_XT_U64,
555 
556  .xf_tag = 0,
557  .xf_opaque = NULL,
558  .xf_offset = offsetof(struct m0_balloc_super_block, bsb_state),
559  .xf_read = NULL,
560  .xf_decor = {
562  }
563  };
564  m0_xc_u64_init();
565 
567  .xf_name = "bsb_version",
568 
569  .xf_type = &M0_XT_U64,
570 
571  .xf_tag = 0,
572  .xf_opaque = NULL,
573  .xf_offset = offsetof(struct m0_balloc_super_block, bsb_version),
574  .xf_read = NULL,
575  .xf_decor = {
577  }
578  };
579  m0_xc_u64_init();
580 
582  .xf_name = "bsb_uuid",
583 
584  .xf_type = &M0_XT_U8,
585 
586  .xf_tag = 128,
587  .xf_opaque = NULL,
588  .xf_offset = offsetof(struct m0_balloc_super_block, bsb_uuid),
589  .xf_read = NULL,
590  .xf_decor = {
592  }
593  };
594  m0_xc_u8_init();
595 
597  .xf_name = "bsb_totalsize",
598 
599  .xf_type = &M0_XT_U64,
600 
601  .xf_tag = 0,
602  .xf_opaque = NULL,
603  .xf_offset = offsetof(struct m0_balloc_super_block, bsb_totalsize),
604  .xf_read = NULL,
605  .xf_decor = {
607  }
608  };
609  m0_xc_u64_init();
610 
612  .xf_name = "bsb_freeblocks",
613 
614  .xf_type = &M0_XT_U64,
615 
616  .xf_tag = 0,
617  .xf_opaque = NULL,
618  .xf_offset = offsetof(struct m0_balloc_super_block, bsb_freeblocks),
619  .xf_read = NULL,
620  .xf_decor = {
622  }
623  };
624  m0_xc_u64_init();
625 
627  .xf_name = "bsb_blocksize",
628 
629  .xf_type = &M0_XT_U64,
630 
631  .xf_tag = 0,
632  .xf_opaque = NULL,
633  .xf_offset = offsetof(struct m0_balloc_super_block, bsb_blocksize),
634  .xf_read = NULL,
635  .xf_decor = {
637  }
638  };
639  m0_xc_u64_init();
640 
642  .xf_name = "bsb_groupsize",
643 
644  .xf_type = &M0_XT_U64,
645 
646  .xf_tag = 0,
647  .xf_opaque = NULL,
648  .xf_offset = offsetof(struct m0_balloc_super_block, bsb_groupsize),
649  .xf_read = NULL,
650  .xf_decor = {
652  }
653  };
654  m0_xc_u64_init();
655 
657  .xf_name = "bsb_bsbits",
658 
659  .xf_type = &M0_XT_U32,
660 
661  .xf_tag = 0,
662  .xf_opaque = NULL,
663  .xf_offset = offsetof(struct m0_balloc_super_block, bsb_bsbits),
664  .xf_read = NULL,
665  .xf_decor = {
667  }
668  };
669  m0_xc_u32_init();
670 
672  .xf_name = "bsb_gsbits",
673 
674  .xf_type = &M0_XT_U32,
675 
676  .xf_tag = 0,
677  .xf_opaque = NULL,
678  .xf_offset = offsetof(struct m0_balloc_super_block, bsb_gsbits),
679  .xf_read = NULL,
680  .xf_decor = {
682  }
683  };
684  m0_xc_u32_init();
685 
687  .xf_name = "bsb_groupcount",
688 
689  .xf_type = &M0_XT_U64,
690 
691  .xf_tag = 0,
692  .xf_opaque = NULL,
693  .xf_offset = offsetof(struct m0_balloc_super_block, bsb_groupcount),
694  .xf_read = NULL,
695  .xf_decor = {
697  }
698  };
699  m0_xc_u64_init();
700 
702  .xf_name = "bsb_prealloc_count",
703 
704  .xf_type = &M0_XT_U64,
705 
706  .xf_tag = 0,
707  .xf_opaque = NULL,
708  .xf_offset = offsetof(struct m0_balloc_super_block, bsb_prealloc_count),
709  .xf_read = NULL,
710  .xf_decor = {
712  }
713  };
714  m0_xc_u64_init();
715 
717  .xf_name = "bsb_format_time",
718 
719  .xf_type = &M0_XT_U64,
720 
721  .xf_tag = 0,
722  .xf_opaque = NULL,
723  .xf_offset = offsetof(struct m0_balloc_super_block, bsb_format_time),
724  .xf_read = NULL,
725  .xf_decor = {
727  }
728  };
729  m0_xc_u64_init();
730 
732  .xf_name = "bsb_write_time",
733 
734  .xf_type = &M0_XT_U64,
735 
736  .xf_tag = 0,
737  .xf_opaque = NULL,
738  .xf_offset = offsetof(struct m0_balloc_super_block, bsb_write_time),
739  .xf_read = NULL,
740  .xf_decor = {
742  }
743  };
744  m0_xc_u64_init();
745 
747  .xf_name = "bsb_mnt_time",
748 
749  .xf_type = &M0_XT_U64,
750 
751  .xf_tag = 0,
752  .xf_opaque = NULL,
753  .xf_offset = offsetof(struct m0_balloc_super_block, bsb_mnt_time),
754  .xf_read = NULL,
755  .xf_decor = {
757  }
758  };
759  m0_xc_u64_init();
760 
762  .xf_name = "bsb_last_check_time",
763 
764  .xf_type = &M0_XT_U64,
765 
766  .xf_tag = 0,
767  .xf_opaque = NULL,
768  .xf_offset = offsetof(struct m0_balloc_super_block, bsb_last_check_time),
769  .xf_read = NULL,
770  .xf_decor = {
772  }
773  };
774  m0_xc_u64_init();
775 
777  .xf_name = "bsb_mnt_count",
778 
779  .xf_type = &M0_XT_U64,
780 
781  .xf_tag = 0,
782  .xf_opaque = NULL,
783  .xf_offset = offsetof(struct m0_balloc_super_block, bsb_mnt_count),
784  .xf_read = NULL,
785  .xf_decor = {
787  }
788  };
789  m0_xc_u64_init();
790 
792  .xf_name = "bsb_max_mnt_count",
793 
794  .xf_type = &M0_XT_U64,
795 
796  .xf_tag = 0,
797  .xf_opaque = NULL,
798  .xf_offset = offsetof(struct m0_balloc_super_block, bsb_max_mnt_count),
799  .xf_read = NULL,
800  .xf_decor = {
802  }
803  };
804  m0_xc_u64_init();
805 
807  .xf_name = "bsb_stripe_size",
808 
809  .xf_type = &M0_XT_U64,
810 
811  .xf_tag = 0,
812  .xf_opaque = NULL,
813  .xf_offset = offsetof(struct m0_balloc_super_block, bsb_stripe_size),
814  .xf_read = NULL,
815  .xf_decor = {
817  }
818  };
819  m0_xc_u64_init();
820 
822 }
823 #endif
824 
825 M0_INTERNAL void m0_xc_balloc_balloc_init(void)
826 {
827 #if !defined(__KERNEL__)
829 #endif
830 #if !defined(__KERNEL__)
832 #endif
833 #if !defined(__KERNEL__)
835 #endif
836 }
837 
838 M0_INTERNAL void m0_xc_balloc_balloc_fini(void)
839 {
840 }
uint64_t bsb_write_time
Definition: balloc.h:653
m0_bcount_t bsb_groupcount
Definition: balloc.h:649
struct m0_be_seg * cb_be_seg
Definition: balloc.h:663
#define NULL
Definition: misc.h:38
m0_bcount_t bsb_blocksize
Definition: balloc.h:645
M0_INTERNAL void m0_xc_m0_format_footer_struct_init(void)
Definition: format_xc.c:226
uint64_t bsb_max_mnt_count
Definition: balloc.h:658
static struct _m0_balloc_s _m0_balloc
struct m0_xcode_type * m0_be_btree_xc
Definition: btree_xc.c:11
M0_BASSERT(offsetof(struct _m0_balloc_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
struct m0_format_footer cb_footer
Definition: balloc.h:644
struct m0_be_mutex cb_sb_mutex
Definition: balloc.h:662
struct m0_xcode_field xct_child[0]
Definition: xcode.h:345
uint64_t bsb_last_check_time
Definition: balloc.h:655
M0_INTERNAL void m0_xc_m0_be_btree_struct_init(void)
Definition: btree_xc.c:141
struct m0_balloc_group_info * cb_group_info
Definition: balloc.h:660
uint64_t bsb_state
Definition: balloc.h:635
struct m0_xcode_type * m0_balloc_super_block_xc
Definition: balloc_xc.c:17
uint64_t bsb_magic
Definition: balloc.h:634
struct m0_format_header cb_header
Definition: balloc.h:634
m0_bcount_t bgd_fragments
Definition: balloc.h:640
uint32_t bsb_gsbits
Definition: balloc.h:648
struct m0_xcode_type _type
Definition: balloc_xc.c:41
struct m0_xcode_type * m0_ad_balloc_xc
Definition: ad_xc.c:11
uint8_t bsb_uuid[128]
Definition: balloc.h:637
uint32_t bsb_bsbits
Definition: balloc.h:647
uint64_t bsb_format_time
Definition: balloc.h:652
struct m0_be_btree cb_db_group_extents
Definition: balloc.h:651
static struct _m0_balloc_group_desc_s _m0_balloc_group_desc
uint64_t bsb_mnt_time
Definition: balloc.h:654
M0_INTERNAL void m0_xc_m0_balloc_super_block_struct_init(void)
Definition: balloc_xc.c:534
struct m0_be_btree cb_db_group_desc
Definition: balloc.h:653
const struct m0_xcode_type M0_XT_VOID
Definition: xcode.c:916
struct m0_xcode_type _type
Definition: balloc_xc.c:60
static struct _m0_balloc_super_block_s _m0_balloc_super_block
struct m0_xcode_field _child[11]
Definition: balloc_xc.c:23
#define M0_POST(cond)
struct m0_xcode_field _child[19]
Definition: balloc_xc.c:61
bool m0_xcode_type_invariant(const struct m0_xcode_type *xt)
Definition: xcode.c:74
M0_INTERNAL void m0_xc_m0_format_header_struct_init(void)
Definition: format_xc.c:191
struct m0_ad_balloc cb_ballroom
Definition: balloc.h:643
struct m0_xcode_field _child[6]
Definition: balloc_xc.c:42
struct m0_xcode_type * m0_balloc_xc
Definition: balloc_xc.c:11
struct m0_xcode_type _type
Definition: balloc_xc.c:22
void m0_xc_u64_init(void)
Definition: xcode.c:904
m0_bcount_t bsb_totalsize
Definition: balloc.h:639
m0_bcount_t bgd_freeblocks
Definition: balloc.h:638
uint64_t cb_container_id
Definition: balloc.h:637
const struct m0_xcode_type M0_XT_U32
Definition: xcode.c:932
M0_INTERNAL void m0_xc_m0_balloc_group_desc_struct_init(void)
Definition: balloc_xc.c:437
uint64_t bsb_version
Definition: balloc.h:636
struct m0_xcode_type * m0_balloc_group_desc_xc
Definition: balloc_xc.c:14
enum m0_xcode_aggr xct_aggr
Definition: xcode.h:316
struct m0_xcode_type * m0_format_header_xc
Definition: format_xc.c:10
m0_bcount_t bsb_freeblocks
Definition: balloc.h:640
M0_INTERNAL void m0_xc_m0_balloc_struct_init(void)
Definition: balloc_xc.c:240
m0_bindex_t cb_last
Definition: balloc.h:641
struct m0_balloc_super_block cb_sb
Definition: balloc.h:639
M0_INTERNAL void m0_xc_balloc_balloc_fini(void)
Definition: balloc_xc.c:838
struct m0_format_header bgd_header
Definition: balloc.h:634
struct m0_format_footer bgd_footer
Definition: balloc.h:653
const struct m0_xcode_type M0_XT_U8
Definition: xcode.c:924
M0_INTERNAL void m0_xc_balloc_balloc_init(void)
Definition: balloc_xc.c:825
struct m0_xcode_type * m0_be_mutex_xc
Definition: format_xc.c:13
void m0_xc_u8_init(void)
Definition: xcode.c:892
void m0_xc_u32_init(void)
Definition: xcode.c:900
M0_INTERNAL void m0_xc_m0_ad_balloc_struct_init(void)
Definition: ad_xc.c:141
m0_bcount_t bsb_prealloc_count
Definition: balloc.h:650
m0_bcount_t bsb_groupsize
Definition: balloc.h:646
const char * xf_name
Definition: xcode.h:251
m0_bindex_t bgd_groupno
Definition: balloc.h:636
M0_INTERNAL void m0_xc_m0_be_mutex_struct_init(void)
Definition: format_xc.c:262
m0_bcount_t bsb_stripe_size
Definition: balloc.h:660
const struct m0_xcode_type M0_XT_U64
Definition: xcode.c:940
#define offsetof(typ, memb)
Definition: misc.h:29
uint64_t bsb_mnt_count
Definition: balloc.h:657
m0_bcount_t bgd_maxchunk
Definition: balloc.h:642
struct m0_xcode_type * m0_format_footer_xc
Definition: format_xc.c:11