Lines Matching refs:from
244 * we never read counters from such superblocks.
395 * More sanity checking. Most of these were stolen directly from
488 /* Validate the realtime geometry; stolen from xfs_repair */
607 struct xfs_dsb *from,
610 to->sb_magicnum = be32_to_cpu(from->sb_magicnum);
611 to->sb_blocksize = be32_to_cpu(from->sb_blocksize);
612 to->sb_dblocks = be64_to_cpu(from->sb_dblocks);
613 to->sb_rblocks = be64_to_cpu(from->sb_rblocks);
614 to->sb_rextents = be64_to_cpu(from->sb_rextents);
615 memcpy(&to->sb_uuid, &from->sb_uuid, sizeof(to->sb_uuid));
616 to->sb_logstart = be64_to_cpu(from->sb_logstart);
617 to->sb_rootino = be64_to_cpu(from->sb_rootino);
618 to->sb_rbmino = be64_to_cpu(from->sb_rbmino);
619 to->sb_rsumino = be64_to_cpu(from->sb_rsumino);
620 to->sb_rextsize = be32_to_cpu(from->sb_rextsize);
621 to->sb_agblocks = be32_to_cpu(from->sb_agblocks);
622 to->sb_agcount = be32_to_cpu(from->sb_agcount);
623 to->sb_rbmblocks = be32_to_cpu(from->sb_rbmblocks);
624 to->sb_logblocks = be32_to_cpu(from->sb_logblocks);
625 to->sb_versionnum = be16_to_cpu(from->sb_versionnum);
626 to->sb_sectsize = be16_to_cpu(from->sb_sectsize);
627 to->sb_inodesize = be16_to_cpu(from->sb_inodesize);
628 to->sb_inopblock = be16_to_cpu(from->sb_inopblock);
629 memcpy(&to->sb_fname, &from->sb_fname, sizeof(to->sb_fname));
630 to->sb_blocklog = from->sb_blocklog;
631 to->sb_sectlog = from->sb_sectlog;
632 to->sb_inodelog = from->sb_inodelog;
633 to->sb_inopblog = from->sb_inopblog;
634 to->sb_agblklog = from->sb_agblklog;
635 to->sb_rextslog = from->sb_rextslog;
636 to->sb_inprogress = from->sb_inprogress;
637 to->sb_imax_pct = from->sb_imax_pct;
638 to->sb_icount = be64_to_cpu(from->sb_icount);
639 to->sb_ifree = be64_to_cpu(from->sb_ifree);
640 to->sb_fdblocks = be64_to_cpu(from->sb_fdblocks);
641 to->sb_frextents = be64_to_cpu(from->sb_frextents);
642 to->sb_uquotino = be64_to_cpu(from->sb_uquotino);
643 to->sb_gquotino = be64_to_cpu(from->sb_gquotino);
644 to->sb_qflags = be16_to_cpu(from->sb_qflags);
645 to->sb_flags = from->sb_flags;
646 to->sb_shared_vn = from->sb_shared_vn;
647 to->sb_inoalignmt = be32_to_cpu(from->sb_inoalignmt);
648 to->sb_unit = be32_to_cpu(from->sb_unit);
649 to->sb_width = be32_to_cpu(from->sb_width);
650 to->sb_dirblklog = from->sb_dirblklog;
651 to->sb_logsectlog = from->sb_logsectlog;
652 to->sb_logsectsize = be16_to_cpu(from->sb_logsectsize);
653 to->sb_logsunit = be32_to_cpu(from->sb_logsunit);
654 to->sb_features2 = be32_to_cpu(from->sb_features2);
655 to->sb_bad_features2 = be32_to_cpu(from->sb_bad_features2);
656 to->sb_features_compat = be32_to_cpu(from->sb_features_compat);
657 to->sb_features_ro_compat = be32_to_cpu(from->sb_features_ro_compat);
658 to->sb_features_incompat = be32_to_cpu(from->sb_features_incompat);
660 be32_to_cpu(from->sb_features_log_incompat);
663 to->sb_spino_align = be32_to_cpu(from->sb_spino_align);
664 to->sb_pquotino = be64_to_cpu(from->sb_pquotino);
665 to->sb_lsn = be64_to_cpu(from->sb_lsn);
667 * sb_meta_uuid is only on disk if it differs from sb_uuid and the
672 uuid_copy(&to->sb_meta_uuid, &from->sb_meta_uuid);
674 uuid_copy(&to->sb_meta_uuid, &from->sb_uuid);
683 struct xfs_dsb *from)
685 __xfs_sb_from_disk(to, from, true);
691 struct xfs_sb *from)
693 uint16_t qflags = from->sb_qflags;
695 to->sb_uquotino = cpu_to_be64(from->sb_uquotino);
701 if (xfs_sb_is_v5(from)) {
702 to->sb_qflags = cpu_to_be16(from->sb_qflags);
703 to->sb_gquotino = cpu_to_be64(from->sb_gquotino);
704 to->sb_pquotino = cpu_to_be64(from->sb_pquotino);
716 if (from->sb_qflags &
719 if (from->sb_qflags &
726 * of superblock that do not have pquotino. from->sb_flags
733 if (from->sb_qflags & XFS_GQUOTA_ACCT)
734 to->sb_gquotino = cpu_to_be64(from->sb_gquotino);
735 else if (from->sb_qflags & XFS_PQUOTA_ACCT)
736 to->sb_gquotino = cpu_to_be64(from->sb_pquotino);
744 if (from->sb_gquotino == NULLFSINO &&
745 from->sb_pquotino == NULLFSINO)
755 struct xfs_sb *from)
757 xfs_sb_quota_to_disk(to, from);
759 to->sb_magicnum = cpu_to_be32(from->sb_magicnum);
760 to->sb_blocksize = cpu_to_be32(from->sb_blocksize);
761 to->sb_dblocks = cpu_to_be64(from->sb_dblocks);
762 to->sb_rblocks = cpu_to_be64(from->sb_rblocks);
763 to->sb_rextents = cpu_to_be64(from->sb_rextents);
764 memcpy(&to->sb_uuid, &from->sb_uuid, sizeof(to->sb_uuid));
765 to->sb_logstart = cpu_to_be64(from->sb_logstart);
766 to->sb_rootino = cpu_to_be64(from->sb_rootino);
767 to->sb_rbmino = cpu_to_be64(from->sb_rbmino);
768 to->sb_rsumino = cpu_to_be64(from->sb_rsumino);
769 to->sb_rextsize = cpu_to_be32(from->sb_rextsize);
770 to->sb_agblocks = cpu_to_be32(from->sb_agblocks);
771 to->sb_agcount = cpu_to_be32(from->sb_agcount);
772 to->sb_rbmblocks = cpu_to_be32(from->sb_rbmblocks);
773 to->sb_logblocks = cpu_to_be32(from->sb_logblocks);
774 to->sb_versionnum = cpu_to_be16(from->sb_versionnum);
775 to->sb_sectsize = cpu_to_be16(from->sb_sectsize);
776 to->sb_inodesize = cpu_to_be16(from->sb_inodesize);
777 to->sb_inopblock = cpu_to_be16(from->sb_inopblock);
778 memcpy(&to->sb_fname, &from->sb_fname, sizeof(to->sb_fname));
779 to->sb_blocklog = from->sb_blocklog;
780 to->sb_sectlog = from->sb_sectlog;
781 to->sb_inodelog = from->sb_inodelog;
782 to->sb_inopblog = from->sb_inopblog;
783 to->sb_agblklog = from->sb_agblklog;
784 to->sb_rextslog = from->sb_rextslog;
785 to->sb_inprogress = from->sb_inprogress;
786 to->sb_imax_pct = from->sb_imax_pct;
787 to->sb_icount = cpu_to_be64(from->sb_icount);
788 to->sb_ifree = cpu_to_be64(from->sb_ifree);
789 to->sb_fdblocks = cpu_to_be64(from->sb_fdblocks);
790 to->sb_frextents = cpu_to_be64(from->sb_frextents);
792 to->sb_flags = from->sb_flags;
793 to->sb_shared_vn = from->sb_shared_vn;
794 to->sb_inoalignmt = cpu_to_be32(from->sb_inoalignmt);
795 to->sb_unit = cpu_to_be32(from->sb_unit);
796 to->sb_width = cpu_to_be32(from->sb_width);
797 to->sb_dirblklog = from->sb_dirblklog;
798 to->sb_logsectlog = from->sb_logsectlog;
799 to->sb_logsectsize = cpu_to_be16(from->sb_logsectsize);
800 to->sb_logsunit = cpu_to_be32(from->sb_logsunit);
807 from->sb_bad_features2 = from->sb_features2;
808 to->sb_features2 = cpu_to_be32(from->sb_features2);
809 to->sb_bad_features2 = cpu_to_be32(from->sb_bad_features2);
811 if (!xfs_sb_is_v5(from))
814 to->sb_features_compat = cpu_to_be32(from->sb_features_compat);
816 cpu_to_be32(from->sb_features_ro_compat);
818 cpu_to_be32(from->sb_features_incompat);
820 cpu_to_be32(from->sb_features_log_incompat);
821 to->sb_spino_align = cpu_to_be32(from->sb_spino_align);
822 to->sb_lsn = cpu_to_be64(from->sb_lsn);
823 if (from->sb_features_incompat & XFS_SB_FEAT_INCOMPAT_META_UUID)
824 uuid_copy(&to->sb_meta_uuid, &from->sb_meta_uuid);
850 * superblock from disk order just to check the version number
958 * fields from the superblock associated with the given
1007 * level of locking that is needed to protect the in-core superblock from
1023 * the counters from the AGF block counts.
1076 * secondary superblock buffers, there is no need to read them in from disk.