Skip to content

Commit

Permalink
rmap: remove page_unlock_anon_vma_read()
Browse files Browse the repository at this point in the history
This was simply an alias for anon_vma_unlock_read() since 2011.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
Matthew Wilcox (Oracle) authored and akpm00 committed Oct 3, 2022
1 parent 29eea9b commit 0c826c0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
5 changes: 0 additions & 5 deletions include/linux/rmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -458,13 +458,8 @@ struct rmap_walk_control {

void rmap_walk(struct folio *folio, struct rmap_walk_control *rwc);
void rmap_walk_locked(struct folio *folio, struct rmap_walk_control *rwc);

/*
* Called by memory-failure.c to kill processes.
*/
struct anon_vma *folio_lock_anon_vma_read(struct folio *folio,
struct rmap_walk_control *rwc);
void page_unlock_anon_vma_read(struct anon_vma *anon_vma);

#else /* !CONFIG_MMU */

Expand Down
2 changes: 1 addition & 1 deletion mm/memory-failure.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ static void collect_procs_anon(struct page *page, struct list_head *to_kill,
}
}
read_unlock(&tasklist_lock);
page_unlock_anon_vma_read(av);
anon_vma_unlock_read(av);
}

/*
Expand Down
5 changes: 0 additions & 5 deletions mm/rmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,11 +599,6 @@ struct anon_vma *folio_lock_anon_vma_read(struct folio *folio,
return anon_vma;
}

void page_unlock_anon_vma_read(struct anon_vma *anon_vma)
{
anon_vma_unlock_read(anon_vma);
}

#ifdef CONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH
/*
* Flush TLB entries for recently unmapped pages from remote CPUs. It is
Expand Down

0 comments on commit 0c826c0

Please sign in to comment.