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-05-29 18:12:52 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-05-28 18:23:59 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-05-28 18:23:09 +02:00
2018-05-29 18:13:00 +02:00
2018-05-30 16:46:52 +02:00
2018-06-07 17:27:45 +02:00
2018-04-12 16:29:46 +02:00
2018-05-28 18:23:09 +02:00
2018-04-12 16:29:46 +02:00
2018-05-28 18:07:32 +02:00
2018-05-28 18:07:20 +02:00
2018-05-28 18:23:16 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-05-30 16:46:43 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-06-21 19:21:13 +02:00
2018-05-28 18:07:20 +02:00
2018-05-28 18:07:17 +02:00
2018-05-28 18:07:17 +02:00
2018-05-30 17:33:58 +02:00
2018-04-12 16:29:51 +02:00
2018-04-18 16:46:57 +02:00
2018-05-28 18:23:46 +02:00
2018-04-12 16:29:46 +02:00
2018-05-28 18:07:36 +02:00
2018-05-28 18:07:36 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-06-28 11:30:50 +02:00
2018-06-21 19:21:13 +02:00
2018-04-12 16:29:55 +02:00
2018-05-28 18:23:09 +02:00
2018-04-12 16:29:46 +02:00
2018-05-30 16:46:43 +02:00
2018-03-26 15:09:39 +02:00
2018-04-12 16:29:46 +02:00
2018-05-28 18:23:09 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-05-28 18:07:26 +02:00
2018-04-20 19:18:16 +02:00
2018-05-17 14:18:25 +02:00
2018-04-12 16:29:46 +02:00
2018-06-28 11:30:57 +02:00
2018-04-12 16:29:46 +02:00
2018-05-30 17:15:43 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-05-28 18:24:11 +02:00
2018-04-12 16:29:51 +02:00
2018-06-11 15:59:14 +02:00
2018-05-28 18:07:32 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-05-28 18:24:13 +02:00
2018-05-28 18:23:41 +02:00
2018-05-28 18:23:39 +02:00
2018-05-30 16:46:52 +02:00
2018-05-30 16:46:54 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-05-28 18:23:09 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-05-30 16:46:53 +02:00
2018-05-30 16:46:52 +02:00
2018-05-28 18:07:30 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:51 +02:00