From: Michael Jeanson Date: Tue, 11 Feb 2020 16:20:41 +0000 (-0500) Subject: fix: proc: decouple proc from VFS with "struct proc_ops" (v5.6) X-Git-Tag: v2.10.14~8 X-Git-Url: http://git.lttng.org/?a=commitdiff_plain;h=dd054d094b5d0bb7248ecfd32b021e124ed2b774;hp=dd054d094b5d0bb7248ecfd32b021e124ed2b774;p=lttng-modules.git fix: proc: decouple proc from VFS with "struct proc_ops" (v5.6) See upstream commit : commit d56c0d45f0e27f814e87a1676b6bdccccbc252e9 Author: Alexey Dobriyan Date: Mon Feb 3 17:37:14 2020 -0800 proc: decouple proc from VFS with "struct proc_ops" Currently core /proc code uses "struct file_operations" for custom hooks, however, VFS doesn't directly call them. Every time VFS expands file_operations hook set, /proc code bloats for no reason. Introduce "struct proc_ops" which contains only those hooks which /proc allows to call into (open, release, read, write, ioctl, mmap, poll). It doesn't contain module pointer as well. Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers ---