Commit 0e39c9e
btrfs: qgroup: fix initialization of auto inherit array
The "i++" was accidentally left out so it just sets qgids[0] over and
over.
This can lead to unexpected problems, as the groups[1:] would be all 0,
leading to later find_qgroup_rb() unable to find a qgroup and cause
snapshot creation failure.
Fixes: 5343cd9 ("btrfs: qgroup: simple quota auto hierarchy for nested subvolumes")
CC: [email protected] # 6.7+
Reviewed-by: Qu Wenruo <[email protected]>
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>1 parent bc00965 commit 0e39c9e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3123 | 3123 | | |
3124 | 3124 | | |
3125 | 3125 | | |
3126 | | - | |
| 3126 | + | |
3127 | 3127 | | |
3128 | 3128 | | |
3129 | 3129 | | |
| |||
0 commit comments