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>
This commit is contained in:
Vinayak Menon 2020-12-30 11:23:26 +05:30 committed by Puranam V G Tejaswi
parent 70c13b73f1
commit 851a03f61d

View file

@ -1821,7 +1821,7 @@ struct reclaim_param reclaim_task_nomap(struct task_struct *task,
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);