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 67/89] romfs: convert to new timestamp accessors
    Date
    Convert to using the new inode timestamp accessor functions.

    Signed-off-by: Jeff Layton <jlayton@kernel.org>
    ---
    fs/romfs/super.c | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    diff --git a/fs/romfs/super.c b/fs/romfs/super.c
    index b1bdfbc211c3..545ad44f96b8 100644
    --- a/fs/romfs/super.c
    +++ b/fs/romfs/super.c
    @@ -322,7 +322,8 @@ static struct inode *romfs_iget(struct super_block *sb, unsigned long pos)

    set_nlink(i, 1); /* Hard to decide.. */
    i->i_size = be32_to_cpu(ri.size);
    - i->i_mtime = i->i_atime = inode_set_ctime(i, 0, 0);
    + inode_set_mtime_to_ts(i,
    + inode_set_atime_to_ts(i, inode_set_ctime(i, 0, 0)));

    /* set up mode and ops */
    mode = romfs_modemap[nextfh & ROMFH_TYPE];
    --
    2.41.0
    \
     
     \ /
      Last update: 2023-10-04 21:00    [W:4.261 / U:0.096 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site