Skip to content

Commit a584512

Browse files
jtlaytonbrauner
authored andcommitted
romfs: convert to ctime accessor functions
In later patches, we're going to change how the inode's ctime field is used. Switch to using accessor functions instead of raw accesses of inode->i_ctime. Signed-off-by: Jeff Layton <[email protected]> Message-Id: <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
1 parent ae83490 commit a584512

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/romfs/super.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,7 @@ static struct inode *romfs_iget(struct super_block *sb, unsigned long pos)
322322

323323
set_nlink(i, 1); /* Hard to decide.. */
324324
i->i_size = be32_to_cpu(ri.size);
325-
i->i_mtime.tv_sec = i->i_atime.tv_sec = i->i_ctime.tv_sec = 0;
326-
i->i_mtime.tv_nsec = i->i_atime.tv_nsec = i->i_ctime.tv_nsec = 0;
325+
i->i_mtime = i->i_atime = inode_set_ctime(i, 0, 0);
327326

328327
/* set up mode and ops */
329328
mode = romfs_modemap[nextfh & ROMFH_TYPE];

0 commit comments

Comments
 (0)