Lines Matching defs:layout
28 * The layout of data is defined by
31 * near_copies (stored in low byte of layout)
32 * far_copies (stored in second byte of layout)
33 * far_offset (stored in bit 16 of layout )
34 * use_far_sets (stored in bit 17 of layout )
35 * use_far_sets_bugfixed (stored in bit 18 of layout )
537 * RAID10 layout manager
552 * With this layout, and block is never stored twice on the one device.
2053 /* We know that the bi_io_vec layout is the same for
3580 int layout, chunk, disks;
3583 layout = mddev->layout;
3588 layout = mddev->new_layout;
3595 layout = mddev->new_layout;
3600 if (layout >> 19)
3605 nc = layout & 255;
3606 fc = (layout >> 8) & 255;
3607 fo = layout & (1<<16);
3612 switch (layout >> 17) {
3613 case 0: /* original layout. simple but not always optimal */
3616 case 1: /* "improved" layout which was buggy. Hopefully no-one is
3620 "This RAID10 layout does not provide data safety - please backup and create new array\n");
3622 case 2: /* "improved" layout fixed to match documentation */
3625 default: /* Not a valid layout */
3663 pr_warn("md/raid10:%s: unsupported raid10 layout: 0x%8x\n",
3773 fc = (mddev->layout >> 8) & 255;
3774 fo = mddev->layout & (1<<16);
3776 pr_err("only near layout is supported by clustered"
4015 /* new layout: far_copies = 1, near_copies = 2 */
4062 * - layout (to ->new_layout)
4460 * write to for this chunk in the new layout
4466 * in the old layout after a restart
4481 * might write to for this chunk in the new layout
4486 * read from in the old layout after a restart
4592 /* Now find the locations in the new layout */
4886 mddev->layout = mddev->new_layout;