Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
libfs: use generic_file_llseek for simple_attr
Browse files Browse the repository at this point in the history
Simple attribute files need to be seekable to
allow resetting the file for another read.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
arndb committed Sep 16, 2010
1 parent a0572d9 commit 1ec5584
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/fs.h
Expand Up @@ -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)))
Expand Down

0 comments on commit 1ec5584

Please sign in to comment.