lkml.org 
[lkml]   [2010]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 12/15] libfs: use generic_file_llseek for simple_attr
    Date
    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 | 1 +
    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)))
    --
    1.7.1


    \
     
     \ /
      Last update: 2010-09-14 22:27    [W:3.375 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site