fs: remove no_llseek
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 29 Jun 2022 13:07:00 +0000 (15:07 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 16 Jul 2022 13:19:47 +0000 (09:19 -0400)
commit868941b14441282ba08761b770fc6cad69d5bdb7
treecd296cdb6bb8a41a826158c8fe9bccc6782ceb56
parent97ef77c52b789ec1411d360ed99dca1efe4b2c81
fs: remove no_llseek

Now that all callers of ->llseek are going through vfs_llseek(), we
don't gain anything by keeping no_llseek around. Nothing actually calls
it and setting ->llseek to no_lseek is completely equivalent to
leaving it NULL.

Longer term (== by the end of merge window) we want to remove all such
intializations.  To simplify the merge window this commit does *not*
touch initializers - it only defines no_llseek as NULL (and simplifies
the tests on file opening).

At -rc1 we'll need do a mechanical removal of no_llseek -

git grep -l -w no_llseek | grep -v porting.rst | while read i; do
sed -i '/\<no_llseek\>/d' $i
done
would do it.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Documentation/filesystems/porting.rst
drivers/gpu/drm/drm_file.c
fs/file_table.c
fs/open.c
fs/read_write.c
include/linux/fs.h
kernel/bpf/bpf_iter.c