libfs: use generic_file_llseek for simple_attr

Simple attribute files need to be seekable to
allow resetting the file for another read.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
Arnd Bergmann 2010-08-15 21:50:52 +02:00
parent a0572d93c1
commit 1ec5584e3e
1 changed files with 1 additions and 0 deletions

View 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)))