linux: convert to new timestamp accessors
Convert to using the new inode timestamp accessor functions. Signed-off-by: Jeff Layton <jlayton@kernel.org> Link: https://lore.kernel.org/r/20231004185347.80880-77-jlayton@kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
8df379a340
commit
1f693269cb
@ -16,14 +16,14 @@ extern void fsstack_copy_inode_size(struct inode *dst, struct inode *src);
|
||||
static inline void fsstack_copy_attr_atime(struct inode *dest,
|
||||
const struct inode *src)
|
||||
{
|
||||
dest->i_atime = src->i_atime;
|
||||
inode_set_atime_to_ts(dest, inode_get_atime(src));
|
||||
}
|
||||
|
||||
static inline void fsstack_copy_attr_times(struct inode *dest,
|
||||
const struct inode *src)
|
||||
{
|
||||
dest->i_atime = src->i_atime;
|
||||
dest->i_mtime = src->i_mtime;
|
||||
inode_set_atime_to_ts(dest, inode_get_atime(src));
|
||||
inode_set_mtime_to_ts(dest, inode_get_mtime(src));
|
||||
inode_set_ctime_to_ts(dest, inode_get_ctime(src));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user