summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2010-08-15 19:50:52 (GMT)
committerArnd Bergmann <arnd@arndb.de>2010-09-16 08:33:19 (GMT)
commit1ec5584e3edf9c4bf2c88c846534d19cf986ba11 (patch)
tree5e381b9f666fc2d62f42e8c7ebc6097d2cdb449e
parenta0572d93c13d28cc25b2c286ec9378eeb4ddd46c (diff)
downloadlinux-fsl-qoriq-1ec5584e3edf9c4bf2c88c846534d19cf986ba11.tar.xz
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>
-rw-r--r--include/linux/fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 76041b6..c8effc8 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -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)))