Prev: [PATCH 05/18] arm/omap: use generic_file_llseek in iommu_debug
Next: [PATCH 06/18] spufs: use llseek in all file operations
From: Arnd Bergmann on 7 Jul 2010 17:50 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 <arnd(a)arndb.de> Cc: Christoph Hellwig <hch(a)infradead.org> Cc: Al Viro <viro(a)zeniv.linux.org.uk> Cc: linux-fsdevel(a)vger.kernel.org --- fs/read_write.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/fs/read_write.c b/fs/read_write.c index 31c0be7..d2ed19a 100644 --- a/fs/read_write.c +++ b/fs/read_write.c @@ -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; } -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |