Chris Mason
e57cf21e97
Btrfs: fix allocation size calculations in alloc_btrfs_bio
...
Since commit 8e5cfb55d3f (Btrfs: Make raid_map array be inlined in
btrfs_bio structure), the raid map array is allocated along with the
btrfs bio in alloc_btrfs_bio. The calculation used to decide how much
we need to allocate was using the wrong parameter passed into the
allocation function.
The passed in real_stripes will be zero if a target replace operation
is not currently running. We want to use total_stripes instead.
Signed-off-by: Chris Mason <clm@fb.com>
Reported-by: David Sterba <dsterba@suse.cz>
Tested-by: David Sterba <dsterba@suse.cz>
2015-02-20 06:55:15 -08:00
..
2015-01-21 18:02:04 -08:00
2014-06-09 17:20:42 -07:00
2014-10-02 16:06:19 +02:00
2014-09-17 13:39:01 -07:00
2015-01-14 19:23:47 +01:00
2015-01-14 19:23:47 +01:00
2015-02-02 18:39:16 -08:00
2014-11-25 06:01:11 -08:00
2013-11-24 16:33:41 -07:00
2014-12-12 11:15:23 -08:00
2014-11-30 09:33:51 -08:00
2015-01-22 05:42:23 -08:00
2015-02-14 08:22:48 -08:00
2015-02-02 18:39:16 -08:00
2014-01-28 13:20:09 -08:00
2014-06-09 17:20:48 -07:00
2014-06-09 17:20:48 -07:00
2015-01-21 18:06:48 -08:00
2012-12-12 17:15:41 -05:00
2014-11-20 17:20:07 -08:00
2015-02-02 19:24:48 -08:00
2014-12-12 18:07:21 +01:00
2014-09-17 13:37:12 -07:00
2015-02-14 08:22:48 -08:00
2015-01-21 18:02:04 -08:00
2014-11-21 11:59:54 -08:00
2014-06-19 14:20:55 -07:00
2015-02-14 08:22:49 -08:00
2014-11-04 06:59:04 -08:00
2014-11-25 07:41:23 -08:00
2015-02-02 19:25:50 -08:00
2014-12-02 18:35:09 -08:00
2014-10-14 10:51:22 +02:00
2014-01-28 13:20:31 -08:00
2015-01-21 18:02:05 -08:00
2014-12-02 18:35:09 -08:00
2011-04-25 16:46:11 +08:00
2015-02-14 08:22:48 -08:00
2014-12-12 11:15:23 -08:00
2014-01-28 13:20:31 -08:00
2014-11-19 10:34:35 -08:00
2014-11-19 10:34:35 -08:00
2014-11-30 09:33:51 -08:00
2014-06-09 17:20:49 -07:00
2012-12-11 13:31:30 -05:00
2014-11-21 11:59:56 -08:00
2014-11-21 11:59:56 -08:00
2014-09-17 13:37:12 -07:00
2014-10-02 17:14:50 +02:00
2013-05-06 15:55:23 -04:00
2014-01-28 13:20:24 -08:00
2014-01-28 13:20:24 -08:00
2015-01-21 18:22:37 -08:00
2014-08-15 07:43:14 -07:00
2015-01-21 18:06:49 -08:00
2015-01-21 18:06:47 -08:00
2012-06-14 21:29:16 -04:00
2015-01-21 18:06:48 -08:00
2014-12-12 18:07:22 +01:00
2014-06-09 17:20:40 -07:00
2015-02-14 08:19:14 -08:00
2015-02-02 18:39:07 -08:00
2013-05-06 15:55:23 -04:00
2012-07-23 16:28:06 -04:00
2015-01-21 18:02:04 -08:00
2015-02-02 19:24:49 -08:00
2014-09-17 13:37:59 -07:00
2015-02-14 08:19:14 -08:00
2015-02-14 08:19:14 -08:00
2014-06-09 17:20:40 -07:00
2015-02-14 08:22:49 -08:00
2014-09-19 06:57:51 -07:00
2014-01-29 07:06:27 -08:00
2014-08-15 07:43:19 -07:00
2014-09-17 13:38:02 -07:00
2015-02-20 06:55:15 -08:00
2015-01-21 18:06:49 -08:00
2014-11-20 17:20:07 -08:00
2014-01-25 23:58:18 -05:00
2014-11-30 09:33:51 -08:00