fs: Drop trivial .lseek() implementaitons in FS drivers
There are no FS drivers that do not implement .lseek callback in the
codebase, so there doesn't seem to exist a use-case where lseek()
would return -ENOSYS due to fsdrv->lseek being NULL. At the same time
a large number of FS drivers implement only the most basic "always
succeeds" custom .lseek() hook.

Change the code of lseek() to treat absense of .lseek() to mean that
no special actions needs to be taken by FS driver and seek is always
successful and drop all of the trivial .lseek() implementations.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent c44997e commit 0c2431b5a15ca03e20ce3c698b8b708181db5fd9
@Andrey Smirnov Andrey Smirnov authored on 29 Jan 2019
Sascha Hauer committed on 29 Jan 2019
Showing 9 changed files
View
fs/cramfs/cramfs.c
View
fs/efivarfs.c
View
fs/ext4/ext_barebox.c
View
fs/fs.c
View
fs/omap4_usbbootfs.c
View
fs/ramfs.c
View
fs/ratpfs.c
View
fs/squashfs/squashfs.c
View
fs/ubifs/ubifs.c