Lines Matching refs:from

551 	struct xfs_dsb	*from,  in __xfs_sb_from_disk()  argument
554 to->sb_magicnum = be32_to_cpu(from->sb_magicnum); in __xfs_sb_from_disk()
555 to->sb_blocksize = be32_to_cpu(from->sb_blocksize); in __xfs_sb_from_disk()
556 to->sb_dblocks = be64_to_cpu(from->sb_dblocks); in __xfs_sb_from_disk()
557 to->sb_rblocks = be64_to_cpu(from->sb_rblocks); in __xfs_sb_from_disk()
558 to->sb_rextents = be64_to_cpu(from->sb_rextents); in __xfs_sb_from_disk()
559 memcpy(&to->sb_uuid, &from->sb_uuid, sizeof(to->sb_uuid)); in __xfs_sb_from_disk()
560 to->sb_logstart = be64_to_cpu(from->sb_logstart); in __xfs_sb_from_disk()
561 to->sb_rootino = be64_to_cpu(from->sb_rootino); in __xfs_sb_from_disk()
562 to->sb_rbmino = be64_to_cpu(from->sb_rbmino); in __xfs_sb_from_disk()
563 to->sb_rsumino = be64_to_cpu(from->sb_rsumino); in __xfs_sb_from_disk()
564 to->sb_rextsize = be32_to_cpu(from->sb_rextsize); in __xfs_sb_from_disk()
565 to->sb_agblocks = be32_to_cpu(from->sb_agblocks); in __xfs_sb_from_disk()
566 to->sb_agcount = be32_to_cpu(from->sb_agcount); in __xfs_sb_from_disk()
567 to->sb_rbmblocks = be32_to_cpu(from->sb_rbmblocks); in __xfs_sb_from_disk()
568 to->sb_logblocks = be32_to_cpu(from->sb_logblocks); in __xfs_sb_from_disk()
569 to->sb_versionnum = be16_to_cpu(from->sb_versionnum); in __xfs_sb_from_disk()
570 to->sb_sectsize = be16_to_cpu(from->sb_sectsize); in __xfs_sb_from_disk()
571 to->sb_inodesize = be16_to_cpu(from->sb_inodesize); in __xfs_sb_from_disk()
572 to->sb_inopblock = be16_to_cpu(from->sb_inopblock); in __xfs_sb_from_disk()
573 memcpy(&to->sb_fname, &from->sb_fname, sizeof(to->sb_fname)); in __xfs_sb_from_disk()
574 to->sb_blocklog = from->sb_blocklog; in __xfs_sb_from_disk()
575 to->sb_sectlog = from->sb_sectlog; in __xfs_sb_from_disk()
576 to->sb_inodelog = from->sb_inodelog; in __xfs_sb_from_disk()
577 to->sb_inopblog = from->sb_inopblog; in __xfs_sb_from_disk()
578 to->sb_agblklog = from->sb_agblklog; in __xfs_sb_from_disk()
579 to->sb_rextslog = from->sb_rextslog; in __xfs_sb_from_disk()
580 to->sb_inprogress = from->sb_inprogress; in __xfs_sb_from_disk()
581 to->sb_imax_pct = from->sb_imax_pct; in __xfs_sb_from_disk()
582 to->sb_icount = be64_to_cpu(from->sb_icount); in __xfs_sb_from_disk()
583 to->sb_ifree = be64_to_cpu(from->sb_ifree); in __xfs_sb_from_disk()
584 to->sb_fdblocks = be64_to_cpu(from->sb_fdblocks); in __xfs_sb_from_disk()
585 to->sb_frextents = be64_to_cpu(from->sb_frextents); in __xfs_sb_from_disk()
586 to->sb_uquotino = be64_to_cpu(from->sb_uquotino); in __xfs_sb_from_disk()
587 to->sb_gquotino = be64_to_cpu(from->sb_gquotino); in __xfs_sb_from_disk()
588 to->sb_qflags = be16_to_cpu(from->sb_qflags); in __xfs_sb_from_disk()
589 to->sb_flags = from->sb_flags; in __xfs_sb_from_disk()
590 to->sb_shared_vn = from->sb_shared_vn; in __xfs_sb_from_disk()
591 to->sb_inoalignmt = be32_to_cpu(from->sb_inoalignmt); in __xfs_sb_from_disk()
592 to->sb_unit = be32_to_cpu(from->sb_unit); in __xfs_sb_from_disk()
593 to->sb_width = be32_to_cpu(from->sb_width); in __xfs_sb_from_disk()
594 to->sb_dirblklog = from->sb_dirblklog; in __xfs_sb_from_disk()
595 to->sb_logsectlog = from->sb_logsectlog; in __xfs_sb_from_disk()
596 to->sb_logsectsize = be16_to_cpu(from->sb_logsectsize); in __xfs_sb_from_disk()
597 to->sb_logsunit = be32_to_cpu(from->sb_logsunit); in __xfs_sb_from_disk()
598 to->sb_features2 = be32_to_cpu(from->sb_features2); in __xfs_sb_from_disk()
599 to->sb_bad_features2 = be32_to_cpu(from->sb_bad_features2); in __xfs_sb_from_disk()
600 to->sb_features_compat = be32_to_cpu(from->sb_features_compat); in __xfs_sb_from_disk()
601 to->sb_features_ro_compat = be32_to_cpu(from->sb_features_ro_compat); in __xfs_sb_from_disk()
602 to->sb_features_incompat = be32_to_cpu(from->sb_features_incompat); in __xfs_sb_from_disk()
604 be32_to_cpu(from->sb_features_log_incompat); in __xfs_sb_from_disk()
607 to->sb_spino_align = be32_to_cpu(from->sb_spino_align); in __xfs_sb_from_disk()
608 to->sb_pquotino = be64_to_cpu(from->sb_pquotino); in __xfs_sb_from_disk()
609 to->sb_lsn = be64_to_cpu(from->sb_lsn); in __xfs_sb_from_disk()
616 uuid_copy(&to->sb_meta_uuid, &from->sb_meta_uuid); in __xfs_sb_from_disk()
618 uuid_copy(&to->sb_meta_uuid, &from->sb_uuid); in __xfs_sb_from_disk()
627 struct xfs_dsb *from) in xfs_sb_from_disk() argument
629 __xfs_sb_from_disk(to, from, true); in xfs_sb_from_disk()
635 struct xfs_sb *from) in xfs_sb_quota_to_disk() argument
637 uint16_t qflags = from->sb_qflags; in xfs_sb_quota_to_disk()
639 to->sb_uquotino = cpu_to_be64(from->sb_uquotino); in xfs_sb_quota_to_disk()
645 if (xfs_sb_is_v5(from)) { in xfs_sb_quota_to_disk()
646 to->sb_qflags = cpu_to_be16(from->sb_qflags); in xfs_sb_quota_to_disk()
647 to->sb_gquotino = cpu_to_be64(from->sb_gquotino); in xfs_sb_quota_to_disk()
648 to->sb_pquotino = cpu_to_be64(from->sb_pquotino); in xfs_sb_quota_to_disk()
660 if (from->sb_qflags & in xfs_sb_quota_to_disk()
663 if (from->sb_qflags & in xfs_sb_quota_to_disk()
677 if (from->sb_qflags & XFS_GQUOTA_ACCT) in xfs_sb_quota_to_disk()
678 to->sb_gquotino = cpu_to_be64(from->sb_gquotino); in xfs_sb_quota_to_disk()
679 else if (from->sb_qflags & XFS_PQUOTA_ACCT) in xfs_sb_quota_to_disk()
680 to->sb_gquotino = cpu_to_be64(from->sb_pquotino); in xfs_sb_quota_to_disk()
688 if (from->sb_gquotino == NULLFSINO && in xfs_sb_quota_to_disk()
689 from->sb_pquotino == NULLFSINO) in xfs_sb_quota_to_disk()
699 struct xfs_sb *from) in xfs_sb_to_disk() argument
701 xfs_sb_quota_to_disk(to, from); in xfs_sb_to_disk()
703 to->sb_magicnum = cpu_to_be32(from->sb_magicnum); in xfs_sb_to_disk()
704 to->sb_blocksize = cpu_to_be32(from->sb_blocksize); in xfs_sb_to_disk()
705 to->sb_dblocks = cpu_to_be64(from->sb_dblocks); in xfs_sb_to_disk()
706 to->sb_rblocks = cpu_to_be64(from->sb_rblocks); in xfs_sb_to_disk()
707 to->sb_rextents = cpu_to_be64(from->sb_rextents); in xfs_sb_to_disk()
708 memcpy(&to->sb_uuid, &from->sb_uuid, sizeof(to->sb_uuid)); in xfs_sb_to_disk()
709 to->sb_logstart = cpu_to_be64(from->sb_logstart); in xfs_sb_to_disk()
710 to->sb_rootino = cpu_to_be64(from->sb_rootino); in xfs_sb_to_disk()
711 to->sb_rbmino = cpu_to_be64(from->sb_rbmino); in xfs_sb_to_disk()
712 to->sb_rsumino = cpu_to_be64(from->sb_rsumino); in xfs_sb_to_disk()
713 to->sb_rextsize = cpu_to_be32(from->sb_rextsize); in xfs_sb_to_disk()
714 to->sb_agblocks = cpu_to_be32(from->sb_agblocks); in xfs_sb_to_disk()
715 to->sb_agcount = cpu_to_be32(from->sb_agcount); in xfs_sb_to_disk()
716 to->sb_rbmblocks = cpu_to_be32(from->sb_rbmblocks); in xfs_sb_to_disk()
717 to->sb_logblocks = cpu_to_be32(from->sb_logblocks); in xfs_sb_to_disk()
718 to->sb_versionnum = cpu_to_be16(from->sb_versionnum); in xfs_sb_to_disk()
719 to->sb_sectsize = cpu_to_be16(from->sb_sectsize); in xfs_sb_to_disk()
720 to->sb_inodesize = cpu_to_be16(from->sb_inodesize); in xfs_sb_to_disk()
721 to->sb_inopblock = cpu_to_be16(from->sb_inopblock); in xfs_sb_to_disk()
722 memcpy(&to->sb_fname, &from->sb_fname, sizeof(to->sb_fname)); in xfs_sb_to_disk()
723 to->sb_blocklog = from->sb_blocklog; in xfs_sb_to_disk()
724 to->sb_sectlog = from->sb_sectlog; in xfs_sb_to_disk()
725 to->sb_inodelog = from->sb_inodelog; in xfs_sb_to_disk()
726 to->sb_inopblog = from->sb_inopblog; in xfs_sb_to_disk()
727 to->sb_agblklog = from->sb_agblklog; in xfs_sb_to_disk()
728 to->sb_rextslog = from->sb_rextslog; in xfs_sb_to_disk()
729 to->sb_inprogress = from->sb_inprogress; in xfs_sb_to_disk()
730 to->sb_imax_pct = from->sb_imax_pct; in xfs_sb_to_disk()
731 to->sb_icount = cpu_to_be64(from->sb_icount); in xfs_sb_to_disk()
732 to->sb_ifree = cpu_to_be64(from->sb_ifree); in xfs_sb_to_disk()
733 to->sb_fdblocks = cpu_to_be64(from->sb_fdblocks); in xfs_sb_to_disk()
734 to->sb_frextents = cpu_to_be64(from->sb_frextents); in xfs_sb_to_disk()
736 to->sb_flags = from->sb_flags; in xfs_sb_to_disk()
737 to->sb_shared_vn = from->sb_shared_vn; in xfs_sb_to_disk()
738 to->sb_inoalignmt = cpu_to_be32(from->sb_inoalignmt); in xfs_sb_to_disk()
739 to->sb_unit = cpu_to_be32(from->sb_unit); in xfs_sb_to_disk()
740 to->sb_width = cpu_to_be32(from->sb_width); in xfs_sb_to_disk()
741 to->sb_dirblklog = from->sb_dirblklog; in xfs_sb_to_disk()
742 to->sb_logsectlog = from->sb_logsectlog; in xfs_sb_to_disk()
743 to->sb_logsectsize = cpu_to_be16(from->sb_logsectsize); in xfs_sb_to_disk()
744 to->sb_logsunit = cpu_to_be32(from->sb_logsunit); in xfs_sb_to_disk()
751 from->sb_bad_features2 = from->sb_features2; in xfs_sb_to_disk()
752 to->sb_features2 = cpu_to_be32(from->sb_features2); in xfs_sb_to_disk()
753 to->sb_bad_features2 = cpu_to_be32(from->sb_bad_features2); in xfs_sb_to_disk()
755 if (!xfs_sb_is_v5(from)) in xfs_sb_to_disk()
758 to->sb_features_compat = cpu_to_be32(from->sb_features_compat); in xfs_sb_to_disk()
760 cpu_to_be32(from->sb_features_ro_compat); in xfs_sb_to_disk()
762 cpu_to_be32(from->sb_features_incompat); in xfs_sb_to_disk()
764 cpu_to_be32(from->sb_features_log_incompat); in xfs_sb_to_disk()
765 to->sb_spino_align = cpu_to_be32(from->sb_spino_align); in xfs_sb_to_disk()
766 to->sb_lsn = cpu_to_be64(from->sb_lsn); in xfs_sb_to_disk()
767 if (from->sb_features_incompat & XFS_SB_FEAT_INCOMPAT_META_UUID) in xfs_sb_to_disk()
768 uuid_copy(&to->sb_meta_uuid, &from->sb_meta_uuid); in xfs_sb_to_disk()