summaryrefslogtreecommitdiff
path: root/quotaon.c
diff options
context:
space:
mode:
Diffstat (limited to 'quotaon.c')
-rw-r--r--quotaon.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/quotaon.c b/quotaon.c
index 8f7651b..d95996b 100644
--- a/quotaon.c
+++ b/quotaon.c
@@ -291,10 +291,7 @@ static int newstate(struct mntent *mnt, int type, char *extra)
errstr(_("Cannot change state of XFS quota. It's not compiled in kernel.\n"));
return 1;
}
- if ((flags & FL_OFF && (kern_quota_on(mnt->mnt_fsname, USRQUOTA, QF_XFS) != -1
- || kern_quota_on(mnt->mnt_fsname, GRPQUOTA, QF_XFS) != -1))
- || (!(flags & FL_OFF) && kern_quota_on(mnt->mnt_fsname, type, QF_XFS) == -1))
- ret = xfs_newstate(mnt, type, extra, sflags);
+ ret = xfs_newstate(mnt, type, extra, sflags);
}
else if (meta_qf_fstype(mnt->mnt_type)) {
if (!hasquota(mnt, type, 0))