summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2023-07-05 15:00:28 -0400
committerChristian Brauner <brauner@kernel.org>2023-07-10 10:04:51 +0200
commitd619f48e7d70919e97259900ca2d591d6165c65d (patch)
tree25cb923d17e433047b692c1254816aa5aed46a42
parent06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5 (diff)
ibmvmc: update ctime in conjunction with mtime on write
POSIX says: "Upon successful completion, where nbyte is greater than 0, write() shall mark for update the last data modification and last file status change timestamps of the file..." Signed-off-by: Jeff Layton <jlayton@kernel.org> Message-Id: <20230705190309.579783-1-jlayton@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
-rw-r--r--drivers/misc/ibmvmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/ibmvmc.c b/drivers/misc/ibmvmc.c
index cbaf6d35e854..d7c7f0305257 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 = current_time(inode);
+ inode->i_mtime = inode->i_ctime = current_time(inode);
mark_inode_dirty(inode);
dev_dbg(adapter->dev, "write: file = 0x%lx, count = 0x%lx\n",