]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
memfd: implement get_id for memfd_luo
authorPasha Tatashin <pasha.tatashin@soleen.com>
Thu, 26 Mar 2026 16:39:42 +0000 (16:39 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 18 Apr 2026 07:10:49 +0000 (00:10 -0700)
commitbc3a5763f4664c5da812eb3f14d55b0c99abd4ab
treebb8b21ce8f5ad3b025cbb77b5f2a2ae0fe4265fa
parent00d0b372374f2528394aabf7b1f53f8dafe294de
memfd: implement get_id for memfd_luo

Memfds are identified by their underlying inode.  Implement get_id for
memfd_luo to return the inode pointer.  This prevents the same memfd from
being managed twice by LUO if the same inode is pointed by multiple file
objects.

Link: https://lore.kernel.org/20260326163943.574070-3-pasha.tatashin@soleen.com
Signed-off-by: Pasha Tatashin <pasha.tatashin@soleen.com>
Reviewed-by: Pratyush Yadav (Google) <pratyush@kernel.org>
Cc: David Matlack <dmatlack@google.com>
Cc: Mike Rapoport (Microsoft) <rppt@kernel.org>
Cc: Samiullah Khawaja <skhawaja@google.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Christian Brauner <brauner@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memfd_luo.c