Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29472715rwd; Wed, 5 Jul 2023 12:21:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlG6LOazofp7belGsmSQAfuQPhNgoEn9hCj4Vj6sFTH2pO5op3TALsgbmRCSHuhy/mzpgoGn X-Received: by 2002:a05:6a20:6a1e:b0:12f:b678:92c9 with SMTP id p30-20020a056a206a1e00b0012fb67892c9mr3189817pzk.14.1688584868144; Wed, 05 Jul 2023 12:21:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688584868; cv=none; d=google.com; s=arc-20160816; b=yZOJJ5dDQFwDFgVMFQh1vfh+ZIeInCfKgdJhW+B0AvJY+HLdSgJLIs7Mto37tjGVsf lIUwSQL1O39PcKqvrfmcV/7zTAp8/oUScdfZUWtW2uI84TOYan1l3QytTDgftDJezt6e Gk4yXN7uE0DkPLEjaKlqRCLNXeODJNzL6bI4nJadgx6fH398O2GvT72IoVYkg0cvP+X/ Ey7qyXexSffNAQTKGpRtr/ROOTZ23BI4730uUM2rtasMCsERpL8y2tTgi2Au/8ebs4o+ ijnbEz/8zo0mPiK/OOftQhB1HWq47ucI4cB/xJWcDA6EP+Mfn5+DPN63K7SDisfcp5j0 koew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=36OC4eSxpyScnl+D6neFgNFCa0z1GQEHU/Tcnahnix0=; fh=2vu4MBfnUADOXALHWEoDesQWhUPj0yymx7XOkhLDJos=; b=mWSOXMdzKgvKbMRGqjiqqgooFDbbEf5dfs72cNVpyQXz6PmV4aeLmORTZsxE3xeiA4 zp+hhouryZaGLgQRl2aGNlU03Yw6pMTNMTmPiMSCtfuKHx80TMycyLxirB6c07Ljc7HQ tXqGg+PUWxy9BIfHGDvaVRixEdTIbpv9R9T0zH6l6vHiouPyuDFU+k8YNh6iVIZfBLkY MGvNFxyuF2hhKW49UXL+JBTHlvyC54PLPK7VQXhgp7Pu7+MMKoe1gA1EP3SyiK8rffQ+ kJptw1GR0DQmj/m9VeX5FsN1gU4HY1BIS3bAYWjcxSkv/fbvQec9P+cU4mZ0zAmptLvm /hiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FTpannEK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h32-20020a635320000000b00553cb7da0ddsi23206673pgb.202.2023.07.05.12.20.55; Wed, 05 Jul 2023 12:21:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FTpannEK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233217AbjGETDT (ORCPT + 99 others); Wed, 5 Jul 2023 15:03:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233317AbjGETDR (ORCPT ); Wed, 5 Jul 2023 15:03:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52F7C198D; Wed, 5 Jul 2023 12:03:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DE7CD616CB; Wed, 5 Jul 2023 19:03:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 745EFC433C7; Wed, 5 Jul 2023 19:03:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688583791; bh=wRIPLE3X7SYZpESEXOLs3yn+7zQ1CKcV/+ZcwAoq978=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FTpannEKxF9FGAXqisIULH/0wrvQYdzHRZ7wioY4D/6BRm1At1RMDBI9nCtFVC1tG ob+ED//wty7dcQ3OMD1HQhRJipfA+/FvAA6M28L0kfISCXzGvVF/l9x6xA7vzhadRB V0htXWbgmNLzWkAKRGLBiRvjF6B1Kflj2KBTIjpD9zfWJzD8em5bFYPPdpqBSp5jEK +fE6bGti3cPOeIwU1oYVj4T6e92p8EVTt2IOAFx2tNbVpTBWT5rBLFRWNIAe9mS2j+ 3S85FBxdlFtI26S8B1l8DLl2CXJKg67qcaNAU6LIlaeKIb/Gs+5LvecQTxBW0sITap zVcAWLDXGBlmw== From: Jeff Layton To: Christian Brauner , Brad Warrum , Ritu Agarwal , Arnd Bergmann , Greg Kroah-Hartman Cc: Al Viro , Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 01/92] ibmvmc: update ctime in conjunction with mtime on write Date: Wed, 5 Jul 2023 15:00:28 -0400 Message-ID: <20230705190309.579783-1-jlayton@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230705185755.579053-1-jlayton@kernel.org> References: <20230705185755.579053-1-jlayton@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/misc/ibmvmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- 2.41.0