diff options
author | Jeff Layton <jlayton@kernel.org> | 2023-10-04 14:51:57 -0400 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-10-18 13:26:17 +0200 |
commit | 9a0518de2b24fb22852ccad0ddd6c67d5c8820d2 (patch) | |
tree | ea8b5467a92a59162f9ee277f36d88319d56b45e | |
parent | ee088ed761b0dc5258693d86710c8857fefda683 (diff) |
function: 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-10-jlayton@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
-rw-r--r-- | drivers/usb/gadget/function/f_fs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/function/f_fs.c b/drivers/usb/gadget/function/f_fs.c index 6e9ef35a43a7..ec26df0306f2 100644 --- a/drivers/usb/gadget/function/f_fs.c +++ b/drivers/usb/gadget/function/f_fs.c @@ -1383,8 +1383,8 @@ ffs_sb_make_inode(struct super_block *sb, void *data, inode->i_mode = perms->mode; inode->i_uid = perms->uid; inode->i_gid = perms->gid; - inode->i_atime = ts; - inode->i_mtime = ts; + inode_set_atime_to_ts(inode, ts); + inode_set_mtime_to_ts(inode, ts); inode->i_private = data; if (fops) inode->i_fop = fops; |