On 8/21/24 17:56, Miklos Szeredi wrote: > On Mon, 19 Aug 2024 at 20:25, Joanne Koong <joannelkoong@xxxxxxxxx> wrote: >> >> In the case where the aux writeback list is dropped (eg the pages >> have been truncated or the connection is broken), the stats for >> its pages and backing device info need to be updated as well. > > Patch looks good. Thanks. > > Do you have a reproducer or was this found by code review only? That's indeed a nice catch from Joanne!. I would have expected that writing to a file and in parallel truncating it would leak WritebackTmp in /proc/meminfo. But I see it going up and always to 0 again. Thanks, Bernd