Lines Matching refs:dst
881 struct fs_disk_quota *dst) in xfs_qm_export_dquot() argument
883 memset(dst, 0, sizeof(*dst)); in xfs_qm_export_dquot()
884 dst->d_version = FS_DQUOT_VERSION; /* different from src->d_version */ in xfs_qm_export_dquot()
885 dst->d_flags = xfs_qm_export_qtype_flags(src->d_flags); in xfs_qm_export_dquot()
886 dst->d_id = be32_to_cpu(src->d_id); in xfs_qm_export_dquot()
887 dst->d_blk_hardlimit = in xfs_qm_export_dquot()
889 dst->d_blk_softlimit = in xfs_qm_export_dquot()
891 dst->d_ino_hardlimit = be64_to_cpu(src->d_ino_hardlimit); in xfs_qm_export_dquot()
892 dst->d_ino_softlimit = be64_to_cpu(src->d_ino_softlimit); in xfs_qm_export_dquot()
893 dst->d_bcount = XFS_FSB_TO_BB(mp, be64_to_cpu(src->d_bcount)); in xfs_qm_export_dquot()
894 dst->d_icount = be64_to_cpu(src->d_icount); in xfs_qm_export_dquot()
895 dst->d_btimer = be32_to_cpu(src->d_btimer); in xfs_qm_export_dquot()
896 dst->d_itimer = be32_to_cpu(src->d_itimer); in xfs_qm_export_dquot()
897 dst->d_iwarns = be16_to_cpu(src->d_iwarns); in xfs_qm_export_dquot()
898 dst->d_bwarns = be16_to_cpu(src->d_bwarns); in xfs_qm_export_dquot()
899 dst->d_rtb_hardlimit = in xfs_qm_export_dquot()
901 dst->d_rtb_softlimit = in xfs_qm_export_dquot()
903 dst->d_rtbcount = XFS_FSB_TO_BB(mp, be64_to_cpu(src->d_rtbcount)); in xfs_qm_export_dquot()
904 dst->d_rtbtimer = be32_to_cpu(src->d_rtbtimer); in xfs_qm_export_dquot()
905 dst->d_rtbwarns = be16_to_cpu(src->d_rtbwarns); in xfs_qm_export_dquot()
915 dst->d_btimer = 0; in xfs_qm_export_dquot()
916 dst->d_itimer = 0; in xfs_qm_export_dquot()
917 dst->d_rtbtimer = 0; in xfs_qm_export_dquot()
921 if (((XFS_IS_UQUOTA_ENFORCED(mp) && dst->d_flags == XFS_USER_QUOTA) || in xfs_qm_export_dquot()
923 (dst->d_flags & (XFS_PROJ_QUOTA | XFS_GROUP_QUOTA)))) && in xfs_qm_export_dquot()
924 dst->d_id != 0) { in xfs_qm_export_dquot()
925 if (((int) dst->d_bcount >= (int) dst->d_blk_softlimit) && in xfs_qm_export_dquot()
926 (dst->d_blk_softlimit > 0)) { in xfs_qm_export_dquot()
927 ASSERT(dst->d_btimer != 0); in xfs_qm_export_dquot()
929 if (((int) dst->d_icount >= (int) dst->d_ino_softlimit) && in xfs_qm_export_dquot()
930 (dst->d_ino_softlimit > 0)) { in xfs_qm_export_dquot()
931 ASSERT(dst->d_itimer != 0); in xfs_qm_export_dquot()