Theodore Ts'o
86f0afd463
ext4: fix ext4_discard_allocated_blocks() if we can't allocate the pa struct
...
If there is a failure while allocating the preallocation structure, a
number of blocks can end up getting marked in the in-memory buddy
bitmap, and then not getting released. This can result in the
following corruption getting reported by the kernel:
EXT4-fs error (device sda3): ext4_mb_generate_buddy:758: group 1126,
12793 clusters in bitmap, 12729 in gd
In that case, we need to release the blocks using mb_free_blocks().
Tested: fs smoke test; also demonstrated that with injected errors,
the file system is no longer getting corrupted
Google-Bug-Id: 16657874
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu >
Cc: stable@vger.kernel.org
2014-07-30 22:17:17 -04:00
..
2014-06-12 10:30:18 -07:00
2014-05-06 17:38:00 -04:00
2014-06-12 10:30:18 -07:00
2014-06-12 10:30:18 -07:00
2014-07-03 09:21:53 -07:00
2014-06-06 16:08:09 -07:00
2014-05-06 17:38:00 -04:00
2014-07-04 08:53:53 -07:00
2014-06-06 16:08:14 -07:00
2014-06-12 23:06:23 -07:00
2014-06-24 08:10:24 -05:00
2014-06-06 16:08:16 -07:00
2014-06-04 16:53:53 -07:00
2014-04-04 15:39:39 -07:00
2014-04-04 15:39:39 -07:00
2014-06-06 16:08:14 -07:00
2014-06-12 10:26:14 -05:00
2014-05-06 17:38:00 -04:00
2014-06-04 16:54:14 -07:00
2014-06-04 16:54:21 -07:00
2014-06-12 10:30:18 -07:00
2014-06-04 16:54:14 -07:00
2014-06-12 00:18:51 -04:00
2014-06-12 10:30:18 -07:00
2014-07-30 22:17:17 -04:00
2014-07-09 05:59:55 -07:00
2014-06-12 10:30:18 -07:00
2014-04-04 15:39:39 -07:00
2014-06-06 16:08:16 -07:00
2014-06-12 10:30:18 -07:00
2014-06-12 10:30:18 -07:00
2014-05-06 17:38:00 -04:00
2014-06-12 10:30:18 -07:00
2014-05-06 17:38:00 -04:00
2014-06-12 10:30:18 -07:00
2014-06-04 16:54:11 -07:00
2014-04-07 17:59:17 -07:00
2014-05-21 10:26:13 +02:00
2014-07-05 19:18:22 -04:00
2014-06-12 10:30:18 -07:00
2014-06-12 10:30:18 -07:00
2014-07-10 11:38:23 -07:00
2014-06-10 11:50:57 -07:00
2014-05-06 17:38:00 -04:00
2014-05-06 17:38:00 -04:00
2014-06-04 16:54:21 -07:00
2014-06-24 18:46:58 -04:00
2014-07-07 14:16:31 -04:00
2014-05-06 17:38:00 -04:00
2014-06-06 16:08:16 -07:00
2014-06-12 10:30:18 -07:00
2014-06-23 16:47:45 -07:00
2014-05-06 17:38:00 -04:00
2014-03-13 10:14:33 -04:00
2014-07-03 09:21:54 -07:00
2014-06-06 16:08:13 -07:00
2014-03-13 10:14:33 -04:00
2014-03-13 10:14:33 -04:00
2014-05-05 17:25:50 +10:00
2014-06-12 00:18:51 -04:00
2014-06-12 10:30:18 -07:00
2014-05-06 17:37:55 -04:00
2014-06-04 16:53:52 -07:00
2014-06-03 08:11:18 -07:00
2014-05-06 17:38:00 -04:00
2014-06-12 10:30:18 -07:00
2014-05-06 17:39:36 -04:00
2014-06-12 10:30:18 -07:00
2014-06-12 10:30:18 -07:00
2014-06-24 13:46:01 -04:00
2014-03-27 09:52:54 -07:00
2014-06-10 13:57:22 -07:00
2014-06-05 08:05:29 -07:00
2014-06-04 16:54:21 -07:00
2014-04-03 16:21:16 -07:00
2014-06-12 10:30:18 -07:00
2014-06-04 16:54:10 -07:00
2014-03-04 08:05:21 +00:00
2014-03-06 16:30:44 +01:00
2014-04-22 08:23:58 -04:00
2014-04-19 13:23:31 -07:00
2014-06-12 10:30:18 -07:00
2014-05-06 17:32:52 -04:00
2014-06-06 16:08:16 -07:00
2014-06-16 17:21:59 -10:00
2014-06-06 07:56:22 +02:00
2014-04-22 08:23:58 -04:00
2014-06-12 10:30:18 -07:00
2014-05-06 17:31:10 -04:00
2014-04-03 16:21:05 -07:00
2014-04-04 14:49:16 -07:00
2014-06-10 13:57:22 -07:00
2014-06-04 16:53:55 -07:00
2014-06-10 12:29:05 -04:00
2014-05-19 11:02:18 -06:00
2014-06-25 22:08:29 -04:00
2014-04-01 23:19:09 -04:00
2014-06-04 16:54:02 -07:00
2014-06-10 13:57:22 -07:00
2014-04-01 23:19:18 -04:00
2014-05-06 17:36:00 -04:00
2014-05-06 17:39:42 -04:00
2014-04-01 23:19:08 -04:00
2014-04-01 23:19:08 -04:00
2014-05-06 13:58:42 -04:00
2014-04-01 23:19:09 -04:00
2014-05-06 17:37:55 -04:00
2014-06-04 16:53:52 -07:00
2014-07-03 09:21:54 -07:00
2014-06-12 00:28:09 -04:00
2014-06-04 16:54:11 -07:00