On 11/6/19 4:14 PM, Christoph Hellwig wrote: > Split out a helper that adds one single partition, and another one > calling that dealing with the parsed_partitions state. This makes > it much more obvious how we clean up all state and start again when > using the rescan label. > > Signed-off-by: Christoph Hellwig <hch@xxxxxx> > --- > block/partition-generic.c | 176 +++++++++++++++++++++----------------- > 1 file changed, 96 insertions(+), 80 deletions(-) > Reviewed-by: Hannes Reinecke <hare@xxxxxxx> Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@xxxxxxx +49 911 74053 688 SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 247165 (AG München), GF: Felix Imendörffer