]> git.karo-electronics.de Git - linux-beck.git/commitdiff
libfs: use generic_file_llseek for simple_attr
authorArnd Bergmann <arnd@arndb.de>
Sun, 15 Aug 2010 19:50:52 +0000 (21:50 +0200)
committerArnd Bergmann <arnd@arndb.de>
Thu, 16 Sep 2010 08:33:19 +0000 (10:33 +0200)
Simple attribute files need to be seekable to
allow resetting the file for another read.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
include/linux/fs.h

index 76041b6147582ef62eb0daedafbf1771a8e844c6..c8effc81f0c99a80d296c092856dc53e4846f900 100644 (file)
@@ -2450,6 +2450,7 @@ static const struct file_operations __fops = {                            \
        .release = simple_attr_release,                                 \
        .read    = simple_attr_read,                                    \
        .write   = simple_attr_write,                                   \
+       .llseek  = generic_file_llseek,                                 \
 };
 
 static inline void __attribute__((format(printf, 1, 2)))