Dave Chinner
ea562ed6e7
xfs: fix delalloc quota accounting on failure
...
xfstest 270 was causing quota reservations way beyond what was sane
(ten to hundreds of TB) for a 4GB filesystem. There's a sign problem
in the error handling path of xfs_bmapi_reserve_delalloc() because
xfs_trans_unreserve_quota_nblks() simple negates the value passed -
which doesn't work for an unsigned variable. This causes
reservations of close to 2^32 block instead of removing a
reservation of a handful of blocks.
Fix the same problem in the other xfs_trans_unreserve_quota_nblks()
callers where unsigned integer variables are used, too.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
2012-05-21 10:45:43 -05:00
..
2010-10-05 12:16:37 +02:00
2011-08-12 16:21:35 -05:00
2012-02-10 12:38:09 -06:00
2012-05-14 16:20:59 -05:00
2011-08-12 16:21:35 -05:00
2011-08-12 16:21:35 -05:00
2011-08-12 16:21:35 -05:00
2011-08-12 16:21:35 -05:00
2011-12-16 15:17:42 -06:00
2011-08-01 02:35:04 -04:00
2012-05-14 16:20:55 -05:00
2012-05-14 16:21:00 -05:00
2012-05-14 16:21:04 -05:00
2012-05-14 16:20:55 -05:00
2012-05-14 16:21:00 -05:00
2012-03-13 16:30:49 -05:00
2012-05-14 16:20:54 -05:00
2009-01-09 15:46:44 +11:00
2010-01-20 10:47:48 +11:00
2012-05-14 16:20:58 -05:00
2010-01-20 10:47:48 +11:00
2009-01-09 15:53:54 +11:00
2012-05-14 16:20:54 -05:00
2010-01-15 15:31:38 -06:00
2012-05-21 10:45:43 -05:00
2012-05-14 16:20:57 -05:00
2012-05-14 16:20:54 -05:00
2011-07-25 15:03:13 -05:00
2012-05-14 16:20:54 -05:00
2010-12-16 16:05:22 -06:00
2012-05-14 16:21:03 -05:00
2012-05-14 16:21:03 -05:00
2012-05-14 16:20:54 -05:00
2011-07-13 13:43:50 +02:00
2012-05-14 16:21:00 -05:00
2010-01-15 15:31:23 -06:00
2011-07-25 15:03:13 -05:00
2012-05-14 16:20:54 -05:00
2012-05-14 16:20:54 -05:00
2011-07-13 13:43:48 +02:00
2012-05-14 16:20:54 -05:00
2012-05-14 16:20:54 -05:00
2011-07-13 13:43:48 +02:00
2012-05-14 16:20:54 -05:00
2012-05-14 16:21:00 -05:00
2011-07-13 13:43:48 +02:00
2012-05-14 16:20:56 -05:00
2011-08-12 16:21:35 -05:00
2012-05-14 16:21:00 -05:00
2011-08-12 16:21:35 -05:00
2012-05-14 16:20:54 -05:00
2012-05-14 16:20:31 -05:00
2012-05-14 16:20:54 -05:00
2011-03-07 10:09:35 +11:00
2012-05-14 16:20:54 -05:00
2011-08-12 16:21:35 -05:00
2012-05-14 16:21:04 -05:00
2012-05-14 16:21:04 -05:00
2012-05-14 16:20:54 -05:00
2010-12-20 11:59:49 +11:00
2012-05-14 16:21:05 -05:00
2011-10-11 21:15:06 -05:00
2010-07-26 13:16:51 -05:00
2012-01-17 15:08:53 -06:00
2011-07-08 11:32:51 -05:00
2012-05-14 16:21:03 -05:00
2011-01-11 20:28:17 -06:00
2011-08-12 16:21:35 -05:00
2012-05-14 16:20:54 -05:00
2009-02-09 08:37:14 +01:00
2012-05-14 16:21:00 -05:00
2012-05-14 16:21:00 -05:00
2012-05-14 16:21:00 -05:00
2012-05-14 16:21:00 -05:00
2012-05-14 16:20:33 -05:00
2012-05-14 16:21:03 -05:00
2012-05-14 16:20:58 -05:00
2012-05-14 16:20:54 -05:00
2012-05-14 16:21:00 -05:00
2011-08-12 16:21:35 -05:00
2012-05-14 16:21:00 -05:00
2011-08-12 16:21:35 -05:00
2012-05-21 10:45:43 -05:00
2010-12-16 16:05:51 -06:00
2012-05-14 16:21:00 -05:00
2011-08-12 16:21:35 -05:00
2012-05-14 16:21:00 -05:00
2010-06-24 11:35:17 +10:00
2011-10-11 11:02:49 -05:00
2012-05-14 16:21:00 -05:00
2012-05-14 16:20:34 -05:00
2012-05-14 16:21:03 -05:00
2010-05-24 10:33:39 -05:00
2012-05-14 16:21:00 -05:00
2012-05-14 16:20:26 -05:00
2012-05-14 16:20:54 -05:00
2011-10-31 17:30:54 -07:00
2012-05-14 16:21:02 -05:00
2012-05-14 16:20:34 -05:00
2011-02-01 11:42:43 +01:00
2010-01-15 15:34:22 -06:00
2012-05-14 16:21:00 -05:00
2012-05-14 16:20:54 -05:00
2012-05-14 16:20:54 -05:00
2012-03-14 12:06:32 -05:00
2012-03-14 11:09:06 -05:00
2012-02-03 11:32:20 -06:00
2012-05-14 16:20:54 -05:00
2012-05-14 16:20:54 -05:00
2012-05-14 16:20:58 -05:00
2011-07-25 15:03:13 -05:00
2012-02-02 17:08:04 -06:00
2012-03-14 11:09:06 -05:00
2012-03-14 11:09:06 -05:00
2012-05-14 16:21:00 -05:00
2012-03-14 12:06:32 -05:00
2012-05-15 14:35:43 -05:00
2012-03-13 17:01:15 -05:00
2011-08-12 16:21:35 -05:00
2011-08-12 16:21:35 -05:00
2012-05-14 16:21:00 -05:00
2012-05-14 16:20:56 -05:00
2012-05-14 16:20:54 -05:00
2012-05-14 16:21:03 -05:00
2012-05-14 16:21:00 -05:00
2012-05-14 16:20:54 -05:00
2012-05-14 16:21:00 -05:00
2012-05-14 16:20:33 -05:00
2009-02-09 08:37:14 +01:00
2012-05-14 16:21:00 -05:00
2012-05-14 16:20:31 -05:00
2012-05-14 16:20:54 -05:00
2012-05-14 16:21:00 -05:00
2012-01-03 22:55:00 -05:00
2012-03-15 13:40:16 -05:00
2012-05-21 10:45:43 -05:00
2012-03-15 13:40:16 -05:00
2011-08-12 16:21:35 -05:00
2011-08-12 13:57:55 -05:00