# Re: \[PATCH v7 4/7\] pid: move pidfd\_get\_pid function to pid.c

- From: Vlastimil Babka \<hidden\>
- Date: 2020-03-06 10:57:26 
- List: linux-api
- Page: https://ratatoskr.run/linux-api/2020/03/5886548
- Thread: https://ratatoskr.run/linux-mm/2020/03/5881613/t.md

```text
On 3/2/20 8:36 PM, Minchan Kim wrote:
> process_madvise syscall needs pidfd_get_pid function to translate
> pidfd to pid so this patch move the function to kernel/pid.c.
> 
> Cc: Christoph Hellwig <hch@infradead.org>
> Cc: Christian Brauner <christian@brauner.io>
> Reviewed-by: Suren Baghdasaryan <surenb@google.com>
> Suggested-by: Alexander Duyck <redacted>
> Reviewed-by: Alexander Duyck <redacted>
> Signed-off-by: Minchan Kim <minchan@kernel.org>

Reviewed-by: Vlastimil Babka <redacted>
```
