]> Git Repo - linux.git/commitdiff
vfs: make no_llseek the default
authorArnd Bergmann <[email protected]>
Wed, 7 Jul 2010 21:10:11 +0000 (23:10 +0200)
committerArnd Bergmann <[email protected]>
Fri, 15 Oct 2010 13:53:46 +0000 (15:53 +0200)
All file operations now have an explicit .llseek
operation pointer, so we can change the default
action for future code.

This makes changes the default from default_llseek
to no_llseek, which always returns -ESPIPE if
a user tries to seek on a file without a .llseek
operation.

The name of the default_llseek function remains
unchanged, if anyone thinks we should change it,
please speak up.

Signed-off-by: Arnd Bergmann <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Al Viro <[email protected]>
Cc: [email protected]
fs/read_write.c

index fd09f6166ccfd197c3971843802a374760a3c4d5..e757ef26e4cecb6d47fd628b32f204e90c4b8497 100644 (file)
@@ -156,7 +156,6 @@ loff_t vfs_llseek(struct file *file, loff_t offset, int origin)
 
        fn = no_llseek;
        if (file->f_mode & FMODE_LSEEK) {
-               fn = default_llseek;
                if (file->f_op && file->f_op->llseek)
                        fn = file->f_op->llseek;
        }
This page took 0.057053 seconds and 4 git commands to generate.