On Wed, May 08, 2024 at 04:43:54AM -0700, Christoph Hellwig wrote: > On Wed, May 08, 2024 at 11:39:49AM +0000, Pankaj Raghav (Samsung) wrote: > > At the moment, we can get a reference to the huge zero folio only through > > the mm interface. > > > > Even if change the lower level interface to return THP, it can still fail > > at the mount time and we will need the fallback right? > > Well, that's why I suggest doing it at mount time. Asking for it deep > down in the write code is certainly going to be a bit problematic. Makes sense. But failing to mount because we can't get a huge zero folio seems wrong as we still can't guarantee it even at mount time. With the current infrastructure I don't see anyway of geting a huge zero folio that is guaranteed so that we don't need any fallback. Let me know what you think. -- Pankaj Raghav