diff options
| author | Jeff Layton <[email protected]> | 2023-07-05 19:00:44 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2023-07-13 08:28:02 +0000 |
| commit | 41441cecd10f565d18668216dc46b634bcc2cada (patch) | |
| tree | cde439aa94abbd8fce58158285a89878f05aae89 /drivers/misc/ibmvmc.c | |
| parent | infiniband: convert to ctime accessor functions (diff) | |
| download | kernel-41441cecd10f565d18668216dc46b634bcc2cada.tar.gz kernel-41441cecd10f565d18668216dc46b634bcc2cada.zip | |
ibm: 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.
Acked-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Jeff Layton <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'drivers/misc/ibmvmc.c')
| -rw-r--r-- | drivers/misc/ibmvmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/ibmvmc.c b/drivers/misc/ibmvmc.c index d7c7f0305257..2101eb12bcba 100644 --- a/drivers/misc/ibmvmc.c +++ b/drivers/misc/ibmvmc.c @@ -1124,7 +1124,7 @@ static ssize_t ibmvmc_write(struct file *file, const char *buffer, goto out; inode = file_inode(file); - inode->i_mtime = inode->i_ctime = current_time(inode); + inode->i_mtime = inode_set_ctime_current(inode); mark_inode_dirty(inode); dev_dbg(adapter->dev, "write: file = 0x%lx, count = 0x%lx\n", |
