Skip to content

Commit 834c736

Browse files
thejhgregkh
authored andcommitted
binder: Remove incorrect comment about vm_insert_page() behavior
vm_insert_page() does increment the page refcount, and just to be sure, I've confirmed it by printing page_count(page[0].page_ptr) before and after vm_insert_page(). It's 1 before, 2 afterwards, as expected. Fixes: a145dd4 ("VM: add "vm_insert_page()" function") Signed-off-by: Jann Horn <jannh@google.com> Acked-by: Christian Brauner <christian.brauner@ubuntu.com> Link: https://lore.kernel.org/r/20191018153946.128584-1-jannh@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 990be74 commit 834c736

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎drivers/android/binder_alloc.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,6 @@ static int binder_update_page_range(struct binder_alloc *alloc, int allocate,
267267
alloc->pages_high = index + 1;
268268

269269
trace_binder_alloc_page_end(alloc, index);
270-
/* vm_insert_page does not seem to increment the refcount */
271270
}
272271
if (mm) {
273272
up_read(&mm->mmap_sem);

0 commit comments

Comments
 (0)