Commit 3845f25
procfs/dmabuf: add inode number to /proc/*/fdinfo
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.com
Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Christian 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: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent 7bc3fa0 commit 3845f25
2 files changed
+34
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1920 | 1920 | | |
1921 | 1921 | | |
1922 | 1922 | | |
1923 | | - | |
1924 | | - | |
1925 | | - | |
1926 | | - | |
1927 | | - | |
1928 | | - | |
| 1923 | + | |
| 1924 | + | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
1929 | 1930 | | |
1930 | 1931 | | |
1931 | 1932 | | |
1932 | 1933 | | |
1933 | 1934 | | |
1934 | 1935 | | |
| 1936 | + | |
1935 | 1937 | | |
1936 | 1938 | | |
1937 | 1939 | | |
| |||
1948 | 1950 | | |
1949 | 1951 | | |
1950 | 1952 | | |
| 1953 | + | |
1951 | 1954 | | |
1952 | 1955 | | |
1953 | 1956 | | |
| |||
1960 | 1963 | | |
1961 | 1964 | | |
1962 | 1965 | | |
| 1966 | + | |
1963 | 1967 | | |
1964 | 1968 | | |
1965 | 1969 | | |
| |||
1973 | 1977 | | |
1974 | 1978 | | |
1975 | 1979 | | |
| 1980 | + | |
1976 | 1981 | | |
1977 | 1982 | | |
1978 | 1983 | | |
| |||
1989 | 1994 | | |
1990 | 1995 | | |
1991 | 1996 | | |
| 1997 | + | |
| 1998 | + | |
1992 | 1999 | | |
1993 | 2000 | | |
1994 | 2001 | | |
| |||
2011 | 2018 | | |
2012 | 2019 | | |
2013 | 2020 | | |
| 2021 | + | |
2014 | 2022 | | |
2015 | 2023 | | |
2016 | 2024 | | |
| |||
2035 | 2043 | | |
2036 | 2044 | | |
2037 | 2045 | | |
| 2046 | + | |
2038 | 2047 | | |
2039 | 2048 | | |
2040 | 2049 | | |
| |||
2049 | 2058 | | |
2050 | 2059 | | |
2051 | 2060 | | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
2052 | 2077 | | |
2053 | 2078 | | |
2054 | 2079 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
0 commit comments