Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1728359
| From | Christoph Hellwig <hch@infradead.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v6 04/11] swiotlb: Map the buffer if it was unmapped by XPFO |
| Date | 2017-09-07 20:20 +0200 |
| Message-ID | <un9zc-3GP-11@gated-at.bofh.it> (permalink) |
| References | <un8Wu-3e6-13@gated-at.bofh.it> <un8Wu-3e6-31@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> - if (PageHighMem(pfn_to_page(pfn))) {
> + if (PageHighMem(page) || xpfo_page_is_unmapped(page)) {
Please don't sprinkle xpfo details over various bits of code.
Just add a helper with a descriptive name, e.g.
page_is_unmapped()
that also includes the highmem case, as that will easily document
what this check is doing.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v6 04/11] swiotlb: Map the buffer if it was unmapped by XPFO Tycho Andersen <tycho@docker.com> - 2017-09-07 19:40 +0200
Re: [PATCH v6 04/11] swiotlb: Map the buffer if it was unmapped by XPFO Christoph Hellwig <hch@infradead.org> - 2017-09-07 20:20 +0200
Re: [PATCH v6 04/11] swiotlb: Map the buffer if it was unmapped by XPFO Tycho Andersen <tycho@docker.com> - 2017-09-07 20:50 +0200
Re: [PATCH v6 04/11] swiotlb: Map the buffer if it was unmapped by XPFO Christoph Hellwig <hch@infradead.org> - 2017-09-08 09:20 +0200
csiph-web