Re: [PATCH v3 bpf-next 02/10] lib/buildid: add single page-based file reader abstraction

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Failure is fine if there is no folio or the folio is not uptodate. I
> assume we can do:
> 
> 	folio = __filemap_get_folio(r->mapping, pg_off, 0, 0);
> 	if (!folio || !folio_test_uptodate(folio))
> 		return -EFAULT;
> 
> Is this appropriate here?

Yes EFAULTing is fine for this usage.

-Andi





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux