]> git.baikalelectronics.ru Git - kernel.git/commit
fs: do not compare against ->llseek
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 29 Jun 2022 13:06:59 +0000 (15:06 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 16 Jul 2022 13:19:15 +0000 (09:19 -0400)
commit8b4ba30ea4a061ce1669d5618b07fabe009381a4
treee9788bc97a081aa7e6a32cb8a1e525c6667cad1c
parentfa265d1c90fd9c7bb66351ea0721703282fb6498
fs: do not compare against ->llseek

Now vfs_llseek() can simply check for FMODE_LSEEK; if it's set,
we know that ->llseek() won't be NULL and if it's not we should
just fail with -ESPIPE.

A couple of other places where we used to check for special
values of ->llseek() (somewhat inconsistently) switched to
checking FMODE_LSEEK.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/coredump.c
fs/overlayfs/copy_up.c
fs/read_write.c