lkml.org 
[lkml]   [2023]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 10/89] x86: convert to new timestamp accessors
    Date
    Convert to using the new inode timestamp accessor functions.

    Signed-off-by: Jeff Layton <jlayton@kernel.org>
    ---
    drivers/platform/x86/sony-laptop.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c
    index 9569f11dec8c..40878e327afd 100644
    --- a/drivers/platform/x86/sony-laptop.c
    +++ b/drivers/platform/x86/sony-laptop.c
    @@ -4092,7 +4092,7 @@ static ssize_t sonypi_misc_read(struct file *file, char __user *buf,

    if (ret > 0) {
    struct inode *inode = file_inode(file);
    - inode->i_atime = current_time(inode);
    + inode_set_atime_to_ts(inode, current_time(inode));
    }

    return ret;
    --
    2.41.0
    \
     
     \ /
      Last update: 2023-10-04 20:56    [W:4.812 / U:0.000 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site