Lines Matching refs:flags
199 uint flags, in xfs_qm_scall_quotaoff() argument
215 if ((mp->m_qflags & flags) == 0) in xfs_qm_scall_quotaoff()
219 flags &= (XFS_ALL_QUOTA_ACCT | XFS_ALL_QUOTA_ENFD); in xfs_qm_scall_quotaoff()
236 if ((flags & XFS_ALL_QUOTA_ACCT) == 0) { in xfs_qm_scall_quotaoff()
237 mp->m_qflags &= ~(flags); in xfs_qm_scall_quotaoff()
256 if (flags & XFS_UQUOTA_ACCT) { in xfs_qm_scall_quotaoff()
258 flags |= (XFS_UQUOTA_CHKD | XFS_UQUOTA_ENFD); in xfs_qm_scall_quotaoff()
261 if (flags & XFS_GQUOTA_ACCT) { in xfs_qm_scall_quotaoff()
263 flags |= (XFS_OQUOTA_CHKD | XFS_OQUOTA_ENFD); in xfs_qm_scall_quotaoff()
265 } else if (flags & XFS_PQUOTA_ACCT) { in xfs_qm_scall_quotaoff()
267 flags |= (XFS_OQUOTA_CHKD | XFS_OQUOTA_ENFD); in xfs_qm_scall_quotaoff()
275 if ((mp->m_qflags & flags) == 0) { in xfs_qm_scall_quotaoff()
285 error = xfs_qm_log_quotaoff(mp, &qoffstart, flags); in xfs_qm_scall_quotaoff()
312 xfs_qm_dqrele_all_inodes(mp, flags); in xfs_qm_scall_quotaoff()
319 mp->m_qflags &= ~(flags); in xfs_qm_scall_quotaoff()
343 error = xfs_qm_log_quotaoff_end(mp, qoffstart, flags); in xfs_qm_scall_quotaoff()
353 if (((flags & XFS_MOUNT_QUOTA_ALL) == XFS_MOUNT_QUOTA_SET1) || in xfs_qm_scall_quotaoff()
354 ((flags & XFS_MOUNT_QUOTA_ALL) == XFS_MOUNT_QUOTA_SET2)) { in xfs_qm_scall_quotaoff()
381 uint flags) in xfs_qm_scall_trunc_qfiles() argument
388 if (!xfs_sb_version_hasquota(&mp->m_sb) || flags == 0) { in xfs_qm_scall_trunc_qfiles()
389 qdprintk("qtrunc flags=%x m_qflags=%x\n", flags, mp->m_qflags); in xfs_qm_scall_trunc_qfiles()
393 if ((flags & XFS_DQ_USER) && mp->m_sb.sb_uquotino != NULLFSINO) { in xfs_qm_scall_trunc_qfiles()
401 if ((flags & (XFS_DQ_GROUP|XFS_DQ_PROJ)) && in xfs_qm_scall_trunc_qfiles()
422 uint flags) in xfs_qm_scall_quotaon() argument
432 flags &= (XFS_ALL_QUOTA_ACCT | XFS_ALL_QUOTA_ENFD); in xfs_qm_scall_quotaon()
436 accflags = flags & XFS_ALL_QUOTA_ACCT; in xfs_qm_scall_quotaon()
437 flags &= ~(XFS_ALL_QUOTA_ACCT); in xfs_qm_scall_quotaon()
441 if (flags == 0) { in xfs_qm_scall_quotaon()
447 ASSERT((flags & XFS_ALL_QUOTA_ACCT) == 0); in xfs_qm_scall_quotaon()
454 if (((flags & XFS_UQUOTA_ACCT) == 0 && in xfs_qm_scall_quotaon()
456 (flags & XFS_UQUOTA_ENFD)) in xfs_qm_scall_quotaon()
458 ((flags & XFS_PQUOTA_ACCT) == 0 && in xfs_qm_scall_quotaon()
460 (flags & XFS_GQUOTA_ACCT) == 0 && in xfs_qm_scall_quotaon()
462 (flags & XFS_OQUOTA_ENFD))) { in xfs_qm_scall_quotaon()
464 flags, mp->m_sb.sb_qflags); in xfs_qm_scall_quotaon()
470 if ((mp->m_qflags & flags) == flags) in xfs_qm_scall_quotaon()
479 mp->m_sb.sb_qflags = qf | flags; in xfs_qm_scall_quotaon()
485 if ((qf & flags) == flags && sbflags == 0) in xfs_qm_scall_quotaon()
500 (flags & XFS_ALL_QUOTA_ENFD) == 0) in xfs_qm_scall_quotaon()
510 mp->m_qflags |= (flags & XFS_ALL_QUOTA_ENFD); in xfs_qm_scall_quotaon()
787 uint flags) in xfs_qm_log_quotaoff_end() argument
802 flags & XFS_ALL_QUOTA_ACCT); in xfs_qm_log_quotaoff_end()
820 uint flags) in xfs_qm_log_quotaoff() argument
837 qoffi = xfs_trans_get_qoff_item(tp, NULL, flags & XFS_ALL_QUOTA_ACCT); in xfs_qm_log_quotaoff()
842 mp->m_sb.sb_qflags = (mp->m_qflags & ~(flags)) & XFS_MOUNT_QUOTA_ALL; in xfs_qm_log_quotaoff()
963 uint flags) in xfs_qm_export_qtype_flags() argument
968 ASSERT((flags & (XFS_PROJ_QUOTA | XFS_USER_QUOTA)) != in xfs_qm_export_qtype_flags()
970 ASSERT((flags & (XFS_PROJ_QUOTA | XFS_GROUP_QUOTA)) != in xfs_qm_export_qtype_flags()
972 ASSERT((flags & (XFS_USER_QUOTA | XFS_GROUP_QUOTA)) != in xfs_qm_export_qtype_flags()
974 ASSERT((flags & (XFS_PROJ_QUOTA|XFS_USER_QUOTA|XFS_GROUP_QUOTA)) != 0); in xfs_qm_export_qtype_flags()
976 return (flags & XFS_DQ_USER) ? in xfs_qm_export_qtype_flags()
977 XFS_USER_QUOTA : (flags & XFS_DQ_PROJ) ? in xfs_qm_export_qtype_flags()
985 uint flags = 0; in xfs_qm_import_flags() local
988 flags |= XFS_UQUOTA_ACCT; in xfs_qm_import_flags()
990 flags |= XFS_PQUOTA_ACCT; in xfs_qm_import_flags()
992 flags |= XFS_GQUOTA_ACCT; in xfs_qm_import_flags()
994 flags |= XFS_UQUOTA_ENFD; in xfs_qm_import_flags()
996 flags |= XFS_OQUOTA_ENFD; in xfs_qm_import_flags()
997 return (flags); in xfs_qm_import_flags()
1003 uint flags) in xfs_qm_export_flags() argument
1008 if (flags & XFS_UQUOTA_ACCT) in xfs_qm_export_flags()
1010 if (flags & XFS_PQUOTA_ACCT) in xfs_qm_export_flags()
1012 if (flags & XFS_GQUOTA_ACCT) in xfs_qm_export_flags()
1014 if (flags & XFS_UQUOTA_ENFD) in xfs_qm_export_flags()
1016 if (flags & (XFS_OQUOTA_ENFD)) { in xfs_qm_export_flags()
1017 uflags |= (flags & XFS_GQUOTA_ACCT) ? in xfs_qm_export_flags()
1031 uint flags) in xfs_qm_dqrele_inodes_ag() argument
1090 if ((flags & XFS_UQUOTA_ACCT) && ip->i_udquot) { in xfs_qm_dqrele_inodes_ag()
1094 if (flags & (XFS_PQUOTA_ACCT|XFS_GQUOTA_ACCT) && in xfs_qm_dqrele_inodes_ag()
1113 uint flags) in xfs_qm_dqrele_all_inodes() argument
1121 xfs_qm_dqrele_inodes_ag(mp, i, flags); in xfs_qm_dqrele_all_inodes()