Re: [PATCH RFC 00/11] mm/filemap: split out folio wait and VFS code
Christoph Hellwig <[email protected]>
| Newsgroups | org.kernel.vger.io-uring,org.kernel.vger.linux-fsdevel,org.kernel.vger.linux-kernel,org.kvack.linux-mm |
|---|---|
| Message-ID | <[email protected]> |
On Thu, May 28, 2026 at 11:22:37AM +0200, Jan Kara wrote: > Overall this makes sense to me. In particular I agree it makes sense to > move the file read/write helpers into fs. I disagree very strongly. Mixing default implementations with the higher level APIs is a really bad idea and leads to people taking stupid shortcuts and other layering violations. Splitting up filemap.c makes sense, but I'd rather keep the generic copy into and out of the pagecache code with the MM infrastructure for it, as it is not VFS code, and making that clear to anyone touching the code is important.