]> git.baikalelectronics.ru Git - kernel.git/commit
proc: mandate ->proc_lseek in "struct proc_ops"
authorAlexey Dobriyan <adobriyan@gmail.com>
Fri, 7 May 2021 01:02:16 +0000 (18:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 7 May 2021 02:24:11 +0000 (19:24 -0700)
commit67adad7b7f0427b7bab06f22dc2fc845bd23bf7c
tree259db030de708622b3215088c3eb664c36b85a4b
parentc1a20b5e4c89f7240726ec8eb45ac0d7c37d560e
proc: mandate ->proc_lseek in "struct proc_ops"

Now that proc_ops are separate from file_operations and other operations
it easy to check all instances to have ->proc_lseek hook and remove check
in main code.

Note:
nonseekable_open() files naturally don't require ->proc_lseek.

Garbage collect pde_lseek() function.

[adobriyan@gmail.com: smoke test lseek()]
Link: https://lkml.kernel.org/r/YG4OIhChOrVTPgdN@localhost.localdomain
Link: https://lkml.kernel.org/r/YFYX0Bzwxlc7aBa/@localhost.localdomain
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/isdn/capi/kcapi_proc.c
drivers/net/wireless/intersil/hostap/hostap_proc.c
drivers/scsi/esas2r/esas2r_main.c
fs/proc/inode.c
include/linux/proc_fs.h
tools/testing/selftests/proc/read.c