Filipe Manana
e4e7ede739
Btrfs: fix mount failure when qgroup rescan is in progress
...
If a power failure happens while the qgroup rescan kthread is running,
the next mount operation will always fail. This is because of a recent
regression that makes qgroup_rescan_init() incorrectly return -EINVAL
when we are mounting the filesystem (through btrfs_read_qgroup_config()).
This causes the -EINVAL error to be returned regardless of any qgroup
flags being set instead of returning the error only when neither of
the flags BTRFS_QGROUP_STATUS_FLAG_RESCAN nor BTRFS_QGROUP_STATUS_FLAG_ON
are set.
A test case for fstests follows up soon.
Fixes: 9593bf4967 ("btrfs: qgroup: show more meaningful qgroup_rescan_init error message")
Signed-off-by: Filipe Manana <fdmanana@suse.com >
Reviewed-by: Qu Wenruo <wqu@suse.com >
Signed-off-by: David Sterba <dsterba@suse.com >
2018-06-28 11:30:57 +02:00
..
2018-04-07 09:08:24 -07:00
2018-05-21 14:29:12 -04:00
2018-05-14 15:15:19 +01:00
2018-04-20 17:18:35 -07:00
2018-05-21 14:30:07 -04:00
2018-06-28 11:30:57 +02:00
2018-05-21 14:30:10 -04:00
2018-05-10 10:15:12 +02:00
2018-05-24 14:12:05 -07:00
2018-02-11 14:34:03 -08:00
2018-05-21 14:30:08 -04:00
2018-02-01 10:51:18 -05:00
2018-03-29 15:07:47 -04:00
2018-03-14 13:31:23 +01:00
2018-02-12 14:15:04 -05:00
2018-05-21 11:54:57 -07:00
2018-02-22 10:21:02 -08:00
2018-02-07 14:25:22 -08:00
2018-04-12 12:04:49 +02:00
2018-05-21 11:54:57 -07:00
2018-05-21 11:54:57 -07:00
2018-05-11 15:36:37 -04:00
2018-02-01 08:15:25 -05:00
2018-01-15 12:07:57 -08:00
2018-04-11 10:28:39 -07:00
2018-03-23 06:31:37 -04:00
2018-04-12 10:07:51 -07:00
2018-05-18 17:17:12 -07:00
2018-04-02 20:15:53 +02:00
2018-04-05 21:36:21 -07:00
2018-04-16 09:47:41 +02:00
2018-04-18 11:49:31 -04:00
2018-05-11 15:36:37 -04:00
2018-05-11 15:36:37 -04:00
2018-05-21 14:30:08 -04:00
2018-03-27 13:18:09 -04:00
2018-03-26 15:55:57 +02:00
2018-04-12 12:55:50 -07:00
2018-03-27 13:18:09 -04:00
2018-05-21 14:30:10 -04:00
2018-05-11 15:36:37 -04:00
2018-04-13 15:52:49 +02:00
2018-03-28 01:39:02 -04:00
2018-05-25 18:12:10 -07:00
2018-05-11 15:36:37 -04:00
2018-04-12 12:04:50 +02:00
2018-05-21 11:23:26 -07:00
2018-04-06 15:45:33 -07:00
2018-04-09 17:48:54 +02:00
2018-05-11 15:36:37 -04:00
2018-05-21 14:30:09 -04:00
2018-04-11 16:39:34 -07:00
2018-05-21 11:54:57 -07:00
2018-05-11 15:36:37 -04:00
2018-05-02 09:21:33 -07:00
2018-05-21 14:30:11 -04:00
2018-04-11 10:28:37 -07:00
2018-04-11 10:28:37 -07:00
2018-04-20 17:18:36 -07:00
2018-04-11 10:28:37 -07:00
2018-04-02 20:16:00 +02:00
2018-04-10 10:25:57 -07:00
2018-04-12 12:28:32 -07:00
2018-03-15 17:59:24 +01:00
2018-03-29 15:07:46 -04:00
2018-04-11 10:28:39 -07:00
2018-05-11 15:36:37 -04:00
2018-04-02 20:15:39 +02:00
2018-04-06 14:19:26 -07:00
2018-04-02 20:15:39 +02:00
2018-04-02 20:15:37 +02:00
2018-04-11 10:28:37 -07:00
2018-04-02 20:15:42 +02:00
2018-01-15 12:07:51 -08:00
2018-04-02 20:16:00 +02:00
2018-05-03 16:11:37 -06:00
2018-04-11 10:28:39 -07:00
2018-04-06 11:07:08 -07:00
2018-04-02 20:16:03 +02:00
2018-01-29 07:27:24 -08:00
2018-02-06 10:41:33 -08:00
2018-03-26 15:55:57 +02:00
2018-03-30 11:34:55 -07:00
2018-03-26 11:13:09 +02:00
2018-03-29 15:07:46 -04:00
2018-01-09 23:57:52 -05:00
2018-04-09 12:48:05 -07:00
2018-04-20 09:59:33 -07:00
2018-02-15 15:34:42 -05:00
2018-04-06 11:07:08 -07:00
2018-04-02 20:15:35 +02:00
2018-02-11 14:34:03 -08:00
2018-04-02 20:16:09 +02:00
2018-04-02 20:16:02 +02:00
2018-04-02 20:15:42 +02:00
2018-05-25 18:12:11 -07:00
2018-04-02 20:15:43 +02:00
2018-04-02 20:15:40 +02:00
2018-04-02 20:15:34 +02:00
2018-05-11 15:37:57 -04:00
2018-04-04 12:44:02 -07:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-04-02 20:15:44 +02:00