Re: [PATCH 2/2] vfs: don't allow writes to swap files

From: Christoph Hellwig
Date: Fri Aug 16 2019 - 02:41:32 EST


The new checks look fine to me, but where does the inode_drain_writes()
function come from, I can't find that in my tree anywhere.

Also what does inode_drain_writes do about existing shared writable
mapping? Do we even care about that corner case?