On Wed, Jul 03, 2019 at 03:35:36AM +0200, Christoph Hellwig wrote: > I didn't run with online discard, but I tried FITRIM (with XFS). > > I'll try looking into ext4. I remember we had some weird one offs in that > area for the different ways the physical segments are calculated, so this > makes sense. Off to dinner now, but I'll look into it tomorrow. ext4 reproduced the bug instantly, but it was Write Zeroes, not Discard. Which explains the whole thing as ext4 is the only major user of Write Zeroes. A oatch will be on its way shortly.