Re: [PATCH 14/21] xfs: use shmem_get_folio in xfile_obj_store

Matthew Wilcox
2024-01-26T16:29:47Z

On Fri, Jan 26, 2024 at 02:28:56PM +0100, Christoph Hellwig wrote:
> + if (folio_test_hwpoison(folio) ||
> + (folio_test_large(folio) &&
> + folio_test_has_hwpoisoned(folio))) {

I need to put in a helper for this. I'm seeing this pattern crop up in
a few places and I don't like it.