diff options
author | Christoph Hellwig <hch@lst.de> | 2023-05-03 17:45:26 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-05-06 19:10:08 +0200 |
commit | 58f5f6698a72a8af5d7bfc5f49b6df60f378f167 (patch) | |
tree | a8d30b3f466ef3bef5786372f566b3de784b9d2b /fs/libfs.c | |
parent | nilfs2: do not write dirty data after degenerating to read-only (diff) | |
download | linux-58f5f6698a72a8af5d7bfc5f49b6df60f378f167.tar.xz linux-58f5f6698a72a8af5d7bfc5f49b6df60f378f167.zip |
afs: fix the afs_dir_get_folio return value
Keep returning NULL on failure instead of letting an ERR_PTR escape to
callers that don't expect it.
Link: https://lkml.kernel.org/r/20230503154526.1223095-2-hch@lst.de
Fixes: 66dabbb65d67 ("mm: return an ERR_PTR from __filemap_get_folio")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Jan Kara <jack@suse.cz>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: David Howells <dhowells@redhat.com>
Tested-by: David Howells <dhowells@redhat.com>
Cc: Marc Dionne <marc.dionne@auristor.com>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/libfs.c')
0 files changed, 0 insertions, 0 deletions