Skip to content

Commit c9b8a83

Browse files
committed
iommufd: Fix comment typos
Repair some typos in comments that were noticed late in the review cycle. Fixes: f394576 ("iommufd: PFN handling for iopt_pages") Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Kevin Tian <[email protected]> Reviewed-by: Eric Auger <[email protected]> Reported-by: Binbin Wu <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 395f9d8 commit c9b8a83

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/iommu/iommufd/io_pagetable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ struct iommu_domain;
3333
*
3434
* The io_pagetable::iova_rwsem protects node
3535
* The iopt_pages::mutex protects pages_node
36-
* iopt and immu_prot are immutable
36+
* iopt and iommu_prot are immutable
3737
* The pages::mutex protects num_accesses
3838
*/
3939
struct iopt_area {

drivers/iommu/iommufd/pages.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ static void batch_destroy(struct pfn_batch *batch, void *backup)
342342
kfree(batch->pfns);
343343
}
344344

345-
/* true if the pfn could be added, false otherwise */
345+
/* true if the pfn was added, false otherwise */
346346
static bool batch_add_pfn(struct pfn_batch *batch, unsigned long pfn)
347347
{
348348
const unsigned int MAX_NPFNS = type_max(typeof(*batch->npfns));
@@ -418,7 +418,7 @@ static struct page **raw_pages_from_domain(struct iommu_domain *domain,
418418
return out_pages;
419419
}
420420

421-
/* Continues reading a domain until we reach a discontiguity in the pfns. */
421+
/* Continues reading a domain until we reach a discontinuity in the pfns. */
422422
static void batch_from_domain_continue(struct pfn_batch *batch,
423423
struct iommu_domain *domain,
424424
struct iopt_area *area,

0 commit comments

Comments
 (0)