Skip to content

Commit

Permalink
xfs: don't set quota warning values
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
catherinehoang authored and dchinner committed May 11, 2022
1 parent 2e06df5 commit 5349b2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions fs/xfs/xfs_qm_syscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,7 @@ xfs_qm_scall_quotaon(
return 0;
}

#define XFS_QC_MASK \
(QC_LIMIT_MASK | QC_TIMER_MASK | QC_WARNS_MASK)
#define XFS_QC_MASK (QC_LIMIT_MASK | QC_TIMER_MASK)

/*
* Adjust limits of this quota, and the defaults if passed in. Returns true
Expand Down
2 changes: 1 addition & 1 deletion fs/xfs/xfs_quotaops.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ xfs_quota_type(int type)
}
}

#define XFS_QC_SETINFO_MASK (QC_TIMER_MASK | QC_WARNS_MASK)
#define XFS_QC_SETINFO_MASK (QC_TIMER_MASK)

/*
* Adjust quota timers & warnings
Expand Down

0 comments on commit 5349b2a

Please sign in to comment.