Skip to content

Commit 5349b2a

Browse files
catherinehoangdchinner
authored andcommitted
xfs: don't set quota warning values
Having just dropped support for quota warning limits and warning counters, the warning fields no longer have any meaning. Prevent these fields from being set by removing QC_WARNS_MASK from XFS_QC_SETINFO_MASK and XFS_QC_MASK. Signed-off-by: Catherine Hoang <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Dave Chinner <[email protected]>
1 parent 2e06df5 commit 5349b2a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

fs/xfs/xfs_qm_syscalls.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,7 @@ xfs_qm_scall_quotaon(
217217
return 0;
218218
}
219219

220-
#define XFS_QC_MASK \
221-
(QC_LIMIT_MASK | QC_TIMER_MASK | QC_WARNS_MASK)
220+
#define XFS_QC_MASK (QC_LIMIT_MASK | QC_TIMER_MASK)
222221

223222
/*
224223
* Adjust limits of this quota, and the defaults if passed in. Returns true

fs/xfs/xfs_quotaops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ xfs_quota_type(int type)
9898
}
9999
}
100100

101-
#define XFS_QC_SETINFO_MASK (QC_TIMER_MASK | QC_WARNS_MASK)
101+
#define XFS_QC_SETINFO_MASK (QC_TIMER_MASK)
102102

103103
/*
104104
* Adjust quota timers & warnings

0 commit comments

Comments
 (0)