summaryrefslogtreecommitdiffstats
path: root/include/linux/quota.h
diff options
context:
space:
mode:
authorJeremy Cline <jcline@redhat.com>2018-07-31 01:37:30 +0000
committerJan Kara <jack@suse.cz>2018-08-22 18:17:29 +0200
commit64d9d13828c6c8e188bba63794eee923df3d69a9 (patch)
treecb5b0cde19e77207113d253a6737c7951706b1df /include/linux/quota.h
parent09a4e0be5826aa66c4ce9954841f110ffe63ef4f (diff)
downloadlinux-stable-64d9d13828c6c8e188bba63794eee923df3d69a9.tar.gz
linux-stable-64d9d13828c6c8e188bba63794eee923df3d69a9.tar.bz2
linux-stable-64d9d13828c6c8e188bba63794eee923df3d69a9.zip
fs/quota: Replace XQM_MAXQUOTAS usage with MAXQUOTAS
XQM_MAXQUOTAS and MAXQUOTAS are, it appears, equivalent. Replace all usage of XQM_MAXQUOTAS and remove it along with the unused XQM_*QUOTA definitions. Signed-off-by: Jeremy Cline <jcline@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'include/linux/quota.h')
-rw-r--r--include/linux/quota.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/linux/quota.h b/include/linux/quota.h
index ca9772c8e48b..f32dd270b8e3 100644
--- a/include/linux/quota.h
+++ b/include/linux/quota.h
@@ -408,13 +408,7 @@ struct qc_type_state {
struct qc_state {
unsigned int s_incoredqs; /* Number of dquots in core */
- /*
- * Per quota type information. The array should really have
- * max(MAXQUOTAS, XQM_MAXQUOTAS) entries. BUILD_BUG_ON in
- * quota_getinfo() makes sure XQM_MAXQUOTAS is large enough. Once VFS
- * supports project quotas, this can be changed to MAXQUOTAS
- */
- struct qc_type_state s_state[XQM_MAXQUOTAS];
+ struct qc_type_state s_state[MAXQUOTAS]; /* Per quota type information */
};
/* Structure for communicating via ->set_info */