Re: [Cluster-devel] return an ERR_PTR from __filemap_get_folio v3

2023-03-07 Thread Andreas Gruenbacher
On Tue, Mar 7, 2023 at 4:07 PM Christoph Hellwig wrote: > __filemap_get_folio and its wrappers can return NULL for three different > conditions, which in some cases requires the caller to reverse engineer > the decision making. This is fixed by returning an ERR_PTR instead of > NULL and thus

[Cluster-devel] return an ERR_PTR from __filemap_get_folio v3

2023-03-07 Thread Christoph Hellwig
Hi all, __filemap_get_folio and its wrappers can return NULL for three different conditions, which in some cases requires the caller to reverse engineer the decision making. This is fixed by returning an ERR_PTR instead of NULL and thus transporting the reason for the failure. But to make that