Omar Sandoval
58efbc9f54
Btrfs: fix blk_status_t/errno confusion
...
This fixes several instances of blk_status_t and bare errno ints being
mixed up, some of which are real bugs.
In the normal case, 0 matches BLK_STS_OK, so we don't observe any
effects of the missing conversion, but in case of errors or passes
through the repair/retry paths, the errors get mixed up.
The changes were identified using 'sparse', we don't have reports of the
buggy behaviour.
Fixes: 4e4cbee93d56 ("block: switch bios to blk_status_t")
Signed-off-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2017-08-24 17:19:02 +02:00
..
2017-06-19 18:25:58 +02:00
2017-06-29 20:24:59 +02:00
2017-01-09 11:24:50 +01:00
2016-12-13 11:01:30 -08:00
2017-06-19 18:26:02 +02:00
2015-01-14 19:23:47 +01:00
2017-06-09 09:27:32 -06:00
2017-07-05 16:41:23 -07:00
2016-12-06 16:06:59 +01:00
2017-07-14 22:55:52 -07:00
2017-07-05 16:41:23 -07:00
2017-06-19 18:26:02 +02:00
2017-07-05 16:41:23 -07:00
2016-07-26 13:52:25 +02:00
2017-04-18 14:07:23 +02:00
2017-04-18 14:07:23 +02:00
2017-06-29 20:17:01 +02:00
2017-06-29 20:17:01 +02:00
2017-06-29 20:17:02 +02:00
2017-02-28 14:26:07 +01:00
2017-06-29 20:06:11 +02:00
2017-08-24 17:19:02 +02:00
2017-07-05 16:41:23 -07:00
2017-06-21 19:16:04 +02:00
2017-07-14 22:55:52 -07:00
2017-07-14 22:55:52 -07:00
2017-04-18 14:07:23 +02:00
2017-04-18 14:07:23 +02:00
2017-07-24 16:04:26 +02:00
2017-07-05 16:41:23 -07:00
2017-07-10 10:27:48 -07:00
2017-04-18 14:07:26 +02:00
2017-02-17 12:03:56 +01:00
2017-06-19 18:26:01 +02:00
2015-12-17 12:16:47 -08:00
2017-06-08 17:36:03 +08:00
2016-06-06 14:08:28 +02:00
2016-12-06 16:06:59 +01:00
2017-06-29 20:17:02 +02:00
2016-01-15 19:25:02 +01:00
2017-08-24 17:19:02 +02:00
2017-06-29 20:17:02 +02:00
2015-01-06 11:04:29 -08:00
2016-01-07 14:30:52 +01:00
2014-11-19 10:34:35 -08:00
2017-06-19 18:26:02 +02:00
2015-12-17 12:16:47 -08:00
2015-03-03 17:23:57 +01:00
2017-06-29 20:17:02 +02:00
2017-06-29 20:17:02 +02:00
2014-09-17 13:37:12 -07:00
2017-06-19 18:26:00 +02:00
2016-12-06 16:06:59 +01:00
2017-06-21 19:16:04 +02:00
2014-01-28 13:20:24 -08:00
2017-06-29 20:17:02 +02:00
2017-06-29 20:17:02 +02:00
2017-08-24 17:19:02 +02:00
2016-12-06 16:06:59 +01:00
2012-06-14 21:29:16 -04:00
2017-06-19 18:25:59 +02:00
2017-06-29 20:17:02 +02:00
2017-06-21 19:16:04 +02:00
2017-07-05 16:41:23 -07:00
2017-07-06 23:02:30 +01:00
2016-01-07 14:38:02 +01:00
2016-05-25 22:35:14 +02:00
2017-07-15 12:00:42 -07:00
2017-06-19 18:25:58 +02:00
2016-01-21 18:50:40 +01:00
2017-06-29 20:17:02 +02:00
2017-04-18 14:07:25 +02:00
2015-12-18 02:51:32 +00:00
2017-07-19 20:38:16 +02:00
2017-02-14 15:50:54 +01:00
2017-02-17 12:03:50 +01:00
2017-02-17 12:03:50 +01:00
2016-12-19 18:08:15 +01:00
2017-08-24 17:19:02 +02:00
2017-08-24 17:19:02 +02:00
2017-06-21 19:16:04 +02:00
2016-05-17 19:17:09 -04:00
2017-06-19 18:26:02 +02:00