Having just dropped support for quota warning limits and warning counters, the warning fields no longer have any meaning. Return -EINVAL if the fieldmask has any of the QC_*_WARNS set. Signed-off-by: Catherine Hoang <catherine.hoang@xxxxxxxxxx> Reviewed-by: Darrick J. Wong <djwong@xxxxxxxxxx> --- fs/xfs/xfs_qm_syscalls.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/xfs/xfs_qm_syscalls.c b/fs/xfs/xfs_qm_syscalls.c index 2149c203b1d0..188e1fed2eba 100644 --- a/fs/xfs/xfs_qm_syscalls.c +++ b/fs/xfs/xfs_qm_syscalls.c @@ -290,6 +290,8 @@ xfs_qm_scall_setqlim( return -EINVAL; if ((newlim->d_fieldmask & XFS_QC_MASK) == 0) return 0; + if (newlim->d_fieldmask & QC_WARNS_MASK) + return -EINVAL; /* * Get the dquot (locked) before we start, as we need to do a -- 2.27.0