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@xxxxxxxxxxxxx> > Cc: Christian Brauner <christian@xxxxxxxxxx> > Reviewed-by: Suren Baghdasaryan <surenb@xxxxxxxxxx> > Suggested-by: Alexander Duyck <alexander.h.duyck@xxxxxxxxxxxxxxx> > Reviewed-by: Alexander Duyck <alexander.h.duyck@xxxxxxxxxxxxxxx> > Signed-off-by: Minchan Kim <minchan@xxxxxxxxxx> Reviewed-by: Vlastimil Babka <vbabka@xxxxxxx>