* [PATCH v2 50/92] hostfs: convert to ctime accessor functions [not found] ` <20230705190309.579783-1-jlayton@kernel.org> @ 2023-07-05 19:01 ` Jeff Layton 2023-07-06 12:48 ` Jan Kara 0 siblings, 1 reply; 2+ messages in thread From: Jeff Layton @ 2023-07-05 19:01 UTC (permalink / raw) To: Christian Brauner, Richard Weinberger, Anton Ivanov, Johannes Berg Cc: Al Viro, Jan Kara, linux-fsdevel, linux-kernel, linux-um 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 <jlayton@kernel.org> --- fs/hostfs/hostfs_kern.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index 46387090eb76..182af84a9c12 100644 --- a/fs/hostfs/hostfs_kern.c +++ b/fs/hostfs/hostfs_kern.c @@ -517,8 +517,7 @@ static int hostfs_inode_update(struct inode *ino, const struct hostfs_stat *st) (struct timespec64){ st->atime.tv_sec, st->atime.tv_nsec }; ino->i_mtime = (struct timespec64){ st->mtime.tv_sec, st->mtime.tv_nsec }; - ino->i_ctime = - (struct timespec64){ st->ctime.tv_sec, st->ctime.tv_nsec }; + inode_set_ctime_to_ts(ino, &st->ctime); ino->i_size = st->size; ino->i_blocks = st->blocks; return 0; -- 2.41.0 _______________________________________________ linux-um mailing list linux-um@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-um ^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2 50/92] hostfs: convert to ctime accessor functions 2023-07-05 19:01 ` [PATCH v2 50/92] hostfs: convert to ctime accessor functions Jeff Layton @ 2023-07-06 12:48 ` Jan Kara 0 siblings, 0 replies; 2+ messages in thread From: Jan Kara @ 2023-07-06 12:48 UTC (permalink / raw) To: Jeff Layton Cc: Christian Brauner, Richard Weinberger, Anton Ivanov, Johannes Berg, Al Viro, Jan Kara, linux-fsdevel, linux-kernel, linux-um On Wed 05-07-23 15:01:15, Jeff Layton wrote: > 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 <jlayton@kernel.org> Looks good. Feel free to add: Reviewed-by: Jan Kara <jack@suse.cz> Honza > --- > fs/hostfs/hostfs_kern.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c > index 46387090eb76..182af84a9c12 100644 > --- a/fs/hostfs/hostfs_kern.c > +++ b/fs/hostfs/hostfs_kern.c > @@ -517,8 +517,7 @@ static int hostfs_inode_update(struct inode *ino, const struct hostfs_stat *st) > (struct timespec64){ st->atime.tv_sec, st->atime.tv_nsec }; > ino->i_mtime = > (struct timespec64){ st->mtime.tv_sec, st->mtime.tv_nsec }; > - ino->i_ctime = > - (struct timespec64){ st->ctime.tv_sec, st->ctime.tv_nsec }; > + inode_set_ctime_to_ts(ino, &st->ctime); > ino->i_size = st->size; > ino->i_blocks = st->blocks; > return 0; > -- > 2.41.0 > -- Jan Kara <jack@suse.com> SUSE Labs, CR _______________________________________________ linux-um mailing list linux-um@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-um ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-06 12:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20230705185755.579053-1-jlayton@kernel.org>
[not found] ` <20230705190309.579783-1-jlayton@kernel.org>
2023-07-05 19:01 ` [PATCH v2 50/92] hostfs: convert to ctime accessor functions Jeff Layton
2023-07-06 12:48 ` Jan Kara
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox