mm: process_reclaim: pass pid struct instead of tgid
Pass pid struct instead of tgid to the reclaim notifier so that
notifier users need not worry on pid reuse issues.
Change-Id: Ifd11937da75547c3b0ddecc19ecad1e488a86962
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c
index 6e3057e..b4a6e79 100644
--- a/fs/proc/task_mmu.c
+++ b/fs/proc/task_mmu.c
@@ -1821,7 +1821,7 @@
goto out;
down_read(&mm->mmap_sem);
- proc_reclaim_notify(task_tgid_nr(task), (void *)&rp);
+ proc_reclaim_notify((unsigned long)task_pid(task), (void *)&rp);
up_read(&mm->mmap_sem);
mmput(mm);