diff options
| author | Jann Horn <[email protected]> | 2019-10-18 15:39:46 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-10-21 16:30:49 +0000 |
| commit | 834c7360f92ad88155c5628eb10d60419ebaa0df (patch) | |
| tree | b61f7c4973f7521c4468ede7c912971c80e50f77 /drivers/android/binder_alloc.c | |
| parent | binder: Use common definition of SZ_1K (diff) | |
| download | kernel-834c7360f92ad88155c5628eb10d60419ebaa0df.tar.gz kernel-834c7360f92ad88155c5628eb10d60419ebaa0df.zip | |
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: a145dd411eb2 ("VM: add "vm_insert_page()" function")
Signed-off-by: Jann Horn <[email protected]>
Acked-by: Christian Brauner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/android/binder_alloc.c')
| -rw-r--r-- | drivers/android/binder_alloc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/android/binder_alloc.c b/drivers/android/binder_alloc.c index d42a8b2f636a..2faada3e97fd 100644 --- a/drivers/android/binder_alloc.c +++ b/drivers/android/binder_alloc.c @@ -267,7 +267,6 @@ static int binder_update_page_range(struct binder_alloc *alloc, int allocate, alloc->pages_high = index + 1; trace_binder_alloc_page_end(alloc, index); - /* vm_insert_page does not seem to increment the refcount */ } if (mm) { up_read(&mm->mmap_sem); |
