• Kalesh Singh's avatar
    procfs/dmabuf: add inode number to /proc/*/fdinfo · 3845f256
    Kalesh Singh authored
    And 'ino' field to /proc/<pid>/fdinfo/<FD> and
    /proc/<pid>/task/<tid>/fdinfo/<FD>.
    
    The inode numbers can be used to uniquely identify DMA buffers in user
    space and avoids a dependency on /proc/<pid>/fd/* when accounting
    per-process DMA buffer sizes.
    
    Link: https://lkml.kernel.org/r/20210308170651.919148-2-kaleshsingh@google.comSigned-off-by: default avatarKalesh Singh <kaleshsingh@google.com>
    Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
    Acked-by: default avatarChristian König <christian.koenig@amd.com>
    Cc: Jann Horn <jannh@google.com>
    Cc: Jeff Vander Stoep <jeffv@google.com>
    Cc: Kees Cook <keescook@chromium.org>
    Cc: Suren Baghdasaryan <surenb@google.com>
    Cc: Minchan Kim <minchan@kernel.org>
    Cc: Hridya Valsaraju <hridya@google.com>
    Cc: Matthew Wilcox <willy@infradead.org>
    Cc: Alexander Viro <viro@zeniv.linux.org.uk>
    Cc: Kalesh Singh <kaleshsingh@google.com>
    Cc: Alexey Dobriyan <adobriyan@gmail.com>
    Cc: Jonathan Corbet <corbet@lwn.net>
    Cc: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    Cc: Michal Hocko <mhocko@suse.com>
    Cc: Alexey Gladkov <gladkov.alexey@gmail.com>
    Cc: Szabolcs Nagy <szabolcs.nagy@arm.com>
    Cc: Eric W. Biederman <ebiederm@xmission.com>
    Cc: Christian Brauner <christian.brauner@ubuntu.com>
    Cc: Michel Lespinasse <walken@google.com>
    Cc: Bernd Edlinger <bernd.edlinger@hotmail.de>
    Cc: Andrei Vagin <avagin@gmail.com>
    Cc: Helge Deller <deller@gmx.de>
    Cc: James Morris <jamorris@linux.microsoft.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    3845f256
fd.c 7.74 KB