Brian Foster
410b11a675
xfs: use tr_qm_dqalloc log reservation for dquot alloc
...
The dquot allocation path in xfs_qm_dqread() currently uses the
attribute set log reservation, which appears to be incorrect. We
have reports of transaction reservation overruns with the current
code. E.g., a repeated run of xfstests test generic/270 on a 512b
block size fs occassionally produces the following in dmesg:
XFS (sdN): xlog_write: reservation summary:
trans type = QM_DQALLOC (30)
unit res = 7080 bytes
current res = -632 bytes
total reg = 0 bytes (o/flow = 0 bytes)
ophdrs = 0 (ophdr space = 0 bytes)
ophdr + reg = 0 bytes
num regions = 0
XFS (sdN): xlog_write: reservation ran out. Need to up reservation
The dquot allocation case should consist of a write reservation
(i.e., we are allocating a range of the internal quota file) plus
the size of the actual dquots. We already have a log reservation
definition for this operation (tr_qm_dqalloc). Use it in
xfs_qm_dqread() and update the log reservation calculation function
to use the write res. calculation function rather than reading the
assumed to be pre-calculated value directly.
Signed-off-by: Brian Foster <bfoster@redhat.com >
Reviewed-by: Jie Liu <jeff.liu@oracle.com >
Reviewed-by: Ben Myers <bpm@sgi.com >
Signed-off-by: Dave Chinner <david@fromorbit.com >
2014-02-07 14:55:54 +11:00
..
2013-05-07 18:45:36 -05:00
2013-11-06 16:31:27 -06:00
2013-11-06 16:31:27 -06:00
2013-10-30 13:37:38 -05:00
2013-05-07 18:45:36 -05:00
2011-08-12 16:21:35 -05:00
2011-08-12 16:21:35 -05:00
2012-11-19 20:11:24 -06:00
2014-01-25 23:58:21 -05:00
2014-01-25 23:58:21 -05:00
2013-10-23 14:11:30 -05:00
2013-10-30 13:59:56 -05:00
2013-10-23 16:28:49 -05:00
2013-11-06 12:42:52 -06:00
2013-10-23 14:11:30 -05:00
2014-01-30 11:19:05 -08:00
2013-09-04 09:23:46 -04:00
2013-10-30 13:47:22 -05:00
2013-10-30 13:59:56 -05:00
2013-10-23 14:21:40 -05:00
2013-12-18 16:08:04 -06:00
2014-01-10 12:38:41 -06:00
2013-10-23 14:21:40 -05:00
2010-01-20 10:47:48 +11:00
2013-12-18 16:07:09 -06:00
2013-08-12 16:53:39 -05:00
2013-10-30 13:59:56 -05:00
2009-01-09 15:53:54 +11:00
2013-10-30 13:59:56 -05:00
2013-10-23 16:28:49 -05:00
2014-01-10 12:39:38 -06:00
2013-10-21 16:57:03 -05:00
2014-01-09 16:03:18 -06:00
2013-08-12 16:58:37 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 16:28:49 -05:00
2013-12-18 10:36:58 -06:00
2013-10-23 16:28:49 -05:00
2014-01-30 11:19:05 -08:00
2014-01-24 11:55:42 -06:00
2012-11-19 20:11:24 -06:00
2013-10-30 13:49:18 -05:00
2013-10-30 13:37:38 -05:00
2013-10-30 13:59:56 -05:00
2013-10-30 13:48:41 -05:00
2013-07-25 10:41:42 -05:00
2013-10-30 13:49:18 -05:00
2013-10-30 13:57:14 -05:00
2013-10-30 13:49:18 -05:00
2013-12-17 09:15:12 -06:00
2013-10-30 13:47:22 -05:00
2013-12-18 15:52:36 -06:00
2013-12-11 14:59:20 -06:00
2013-10-30 13:49:18 -05:00
2013-10-30 13:49:18 -05:00
2013-12-10 10:00:33 -06:00
2011-08-12 16:21:35 -05:00
2013-10-30 13:59:56 -05:00
2013-12-13 11:34:08 +11:00
2013-12-13 11:34:08 +11:00
2014-02-07 14:55:54 +11:00
2013-10-23 14:11:30 -05:00
2013-10-23 16:28:49 -05:00
2011-03-07 10:09:35 +11:00
2013-10-23 16:28:49 -05:00
2011-08-12 16:21:35 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 16:28:49 -05:00
2013-12-13 11:34:02 +11:00
2013-08-12 16:07:13 -05:00
2014-01-24 11:55:42 -06:00
2013-10-23 16:28:49 -05:00
2013-08-12 17:00:11 -05:00
2013-10-23 16:28:49 -05:00
2013-10-08 14:28:09 -05:00
2013-12-10 10:04:27 -06:00
2011-01-11 20:28:17 -06:00
2012-11-08 15:34:59 -06:00
2013-10-30 13:59:56 -05:00
2013-10-23 16:28:49 -05:00
2013-12-13 15:51:49 +11:00
2013-12-13 15:51:48 +11:00
2013-10-23 16:28:49 -05:00
2013-09-12 16:13:41 -07:00
2013-12-13 11:34:02 +11:00
2013-08-12 16:10:35 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 14:11:30 -05:00
2014-01-09 16:03:18 -06:00
2013-10-23 16:28:49 -05:00
2013-12-13 11:34:05 +11:00
2013-12-13 11:34:05 +11:00
2014-01-09 16:03:18 -06:00
2013-12-18 15:48:44 -06:00
2012-05-14 16:20:54 -05:00
2013-12-10 09:59:37 -06:00
2011-08-12 16:21:35 -05:00
2014-01-24 11:55:42 -06:00
2013-08-12 16:56:06 -05:00
2013-10-23 16:28:49 -05:00
2013-10-01 15:42:34 -05:00
2014-01-28 08:38:04 -08:00
2014-01-25 23:58:21 -05:00
2013-12-13 15:51:48 +11:00
2010-06-24 11:35:17 +10:00
2013-08-20 15:30:23 -05:00
2013-12-13 11:34:02 +11:00
2013-10-23 14:11:30 -05:00
2013-10-23 16:17:44 -05:00
2013-12-18 10:36:58 -06:00
2010-05-24 10:33:39 -05:00
2013-10-23 16:28:49 -05:00
2013-11-06 12:41:51 -06:00
2013-12-13 11:34:02 +11:00
2013-10-23 16:17:44 -05:00
2013-05-07 18:45:36 -05:00
2013-11-18 09:29:36 -06:00
2013-11-18 09:29:36 -06:00
2011-02-01 11:42:43 +01:00
2010-01-15 15:34:22 -06:00
2013-10-23 16:28:49 -05:00
2013-12-06 14:06:15 -06:00
2013-12-18 16:06:38 -06:00
2013-12-06 14:16:33 -06:00
2013-10-23 14:28:35 -05:00
2013-10-23 14:28:35 -05:00
2013-10-23 16:28:49 -05:00
2014-02-07 14:53:50 +11:00
2013-10-23 17:16:32 -05:00
2013-10-30 13:59:56 -05:00
2013-10-30 16:38:29 -05:00
2013-10-23 14:11:30 -05:00
2013-10-23 14:11:30 -05:00
2012-03-14 11:09:06 -05:00
2012-03-14 11:09:06 -05:00
2013-11-14 17:16:35 +09:00
2012-10-17 12:01:25 -05:00
2013-10-23 16:17:44 -05:00
2013-10-23 16:28:49 -05:00
2013-10-08 14:53:02 -05:00
2013-06-17 17:42:25 -05:00
2012-11-08 15:34:59 -06:00
2013-10-23 16:28:49 -05:00
2013-11-06 12:42:52 -06:00
2013-11-06 12:41:51 -06:00
2013-12-17 09:28:43 -06:00
2013-12-04 14:26:57 -06:00
2013-10-23 16:17:44 -05:00
2013-11-18 09:42:08 -06:00
2013-10-23 16:17:44 -05:00
2014-02-07 14:55:54 +11:00
2014-02-07 14:54:22 +11:00
2013-12-13 15:51:48 +11:00
2013-10-23 16:28:49 -05:00
2013-12-13 11:34:02 +11:00
2013-08-22 08:40:24 -05:00
2013-12-04 14:11:05 -06:00
2014-01-25 23:58:21 -05:00
2013-05-07 18:45:36 -05:00