aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2010-08-15 15:50:52 -0400
committerArnd Bergmann <arnd@arndb.de>2010-09-16 04:33:19 -0400
commit1ec5584e3edf9c4bf2c88c846534d19cf986ba11 (patch)
tree5e381b9f666fc2d62f42e8c7ebc6097d2cdb449e /include/linux/fs.h
parenta0572d93c13d28cc25b2c286ec9378eeb4ddd46c (diff)
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>
Diffstat (limited to 'include/linux/fs.h')
-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 76041b614758..c8effc81f0c9 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -2450,6 +2450,7 @@ static const struct file_operations __fops = { \
2450 .release = simple_attr_release, \ 2450 .release = simple_attr_release, \
2451 .read = simple_attr_read, \ 2451 .read = simple_attr_read, \
2452 .write = simple_attr_write, \ 2452 .write = simple_attr_write, \
2453 .llseek = generic_file_llseek, \
2453}; 2454};
2454 2455
2455static inline void __attribute__((format(printf, 1, 2))) 2456static inline void __attribute__((format(printf, 1, 2)))