@@ -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
@@ -250,17 +249,6 @@ xfs_setqlim_limits(
250249 return true;
251250}
252251
253- static inline void
254- xfs_setqlim_warns (
255- struct xfs_dquot_res * res ,
256- struct xfs_quota_limits * qlim ,
257- int warns )
258- {
259- res -> warnings = warns ;
260- if (qlim )
261- qlim -> warn = warns ;
262- }
263-
264252static inline void
265253xfs_setqlim_timer (
266254 struct xfs_mount * mp ,
@@ -354,8 +342,6 @@ xfs_qm_scall_setqlim(
354342
355343 if (xfs_setqlim_limits (mp , res , qlim , hard , soft , "blk" ))
356344 xfs_dquot_set_prealloc_limits (dqp );
357- if (newlim -> d_fieldmask & QC_SPC_WARNS )
358- xfs_setqlim_warns (res , qlim , newlim -> d_spc_warns );
359345 if (newlim -> d_fieldmask & QC_SPC_TIMER )
360346 xfs_setqlim_timer (mp , res , qlim , newlim -> d_spc_timer );
361347
@@ -370,8 +356,6 @@ xfs_qm_scall_setqlim(
370356 qlim = id == 0 ? & defq -> rtb : NULL ;
371357
372358 xfs_setqlim_limits (mp , res , qlim , hard , soft , "rtb" );
373- if (newlim -> d_fieldmask & QC_RT_SPC_WARNS )
374- xfs_setqlim_warns (res , qlim , newlim -> d_rt_spc_warns );
375359 if (newlim -> d_fieldmask & QC_RT_SPC_TIMER )
376360 xfs_setqlim_timer (mp , res , qlim , newlim -> d_rt_spc_timer );
377361
@@ -386,8 +370,6 @@ xfs_qm_scall_setqlim(
386370 qlim = id == 0 ? & defq -> ino : NULL ;
387371
388372 xfs_setqlim_limits (mp , res , qlim , hard , soft , "ino" );
389- if (newlim -> d_fieldmask & QC_INO_WARNS )
390- xfs_setqlim_warns (res , qlim , newlim -> d_ino_warns );
391373 if (newlim -> d_fieldmask & QC_INO_TIMER )
392374 xfs_setqlim_timer (mp , res , qlim , newlim -> d_ino_timer );
393375
@@ -428,13 +410,13 @@ xfs_qm_scall_getquota_fill_qc(
428410 dst -> d_ino_count = dqp -> q_ino .reserved ;
429411 dst -> d_spc_timer = dqp -> q_blk .timer ;
430412 dst -> d_ino_timer = dqp -> q_ino .timer ;
431- dst -> d_ino_warns = dqp -> q_ino . warnings ;
432- dst -> d_spc_warns = dqp -> q_blk . warnings ;
413+ dst -> d_ino_warns = 0 ;
414+ dst -> d_spc_warns = 0 ;
433415 dst -> d_rt_spc_hardlimit = XFS_FSB_TO_B (mp , dqp -> q_rtb .hardlimit );
434416 dst -> d_rt_spc_softlimit = XFS_FSB_TO_B (mp , dqp -> q_rtb .softlimit );
435417 dst -> d_rt_space = XFS_FSB_TO_B (mp , dqp -> q_rtb .reserved );
436418 dst -> d_rt_spc_timer = dqp -> q_rtb .timer ;
437- dst -> d_rt_spc_warns = dqp -> q_rtb . warnings ;
419+ dst -> d_rt_spc_warns = 0 ;
438420
439421 /*
440422 * Internally, we don't reset all the timers when quota enforcement
0 commit comments