cleanup the partitioning code

Christoph Hellwig
2020-03-12T15:19:45Z

Hi Jens,

this series cleans up the partitioning code.