Re: [PATCH 4/6] libxfs: reused invalidated buffers leak state and data

Christoph Hellwig
2014-07-05T09:48:09Z

On Sat, Jul 05, 2014 at 08:22:10AM +1000, Dave Chinner wrote:
> I'm open to other ways of fixing this, but right now we've got to
> fix xfs_repair because it's currently breaking filesystems worse
> than before xfs_repair was run...

Ok, so clearly mark this as difference from kernel code in a long
comment explaining the situation similar to wrote you above. It's
pretty obvious that the buffer cache in userspace will eventually need
a major overhaul sooner or later. I wonder how feasible porting the
kernel one would be..