From patchwork Wed Oct 4 18:53:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 13409335 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D93EFE7C4E9 for ; Wed, 4 Oct 2023 19:00:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245325AbjJDTA7 (ORCPT ); Wed, 4 Oct 2023 15:00:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244954AbjJDS7H (ORCPT ); Wed, 4 Oct 2023 14:59:07 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 834D41FCE; Wed, 4 Oct 2023 11:55:21 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD016C433D9; Wed, 4 Oct 2023 18:55:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696445721; bh=nmBe8zw5Ozk9SsspeSTfoPTE0dqkpP5EVJV/pwQVTiE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=RBPj3XaFy+HwqFSflFtf5YtrJJVo8X1ACXxsgvFrdKXMqPtoSLFYkdVUHtJaqlusA qDi2W48u0a1FGdiLEJ+H+DFD8htQ7bo1EJz/L/to0iCkmAsehZZSTeQ0AJDvvXVnHd 0ovJ/va685FW4d+kK18tNDfz26SQDz62ba/VXxeZj924DLlz8bYjVB7Sq677PZmfLx a4TNg5esgu54s8aLm+3tpfiOcJH9RTarmO1RPqVbue7jZ49Phd8lSowGO0DqLCUvVs +ug3tJ1ADfh86rbO+d0Z2bLQgOXdHyNmYChQp3eXfzdCc6iBYyuVyGdC+YwD+yPYgq +ACSyE9eD558g== From: Jeff Layton To: Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 79/89] linux: convert to new timestamp accessors Date: Wed, 4 Oct 2023 14:53:04 -0400 Message-ID: <20231004185347.80880-77-jlayton@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231004185347.80880-1-jlayton@kernel.org> References: <20231004185221.80802-1-jlayton@kernel.org> <20231004185347.80880-1-jlayton@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org Convert to using the new inode timestamp accessor functions. Signed-off-by: Jeff Layton --- include/linux/fs_stack.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/fs_stack.h b/include/linux/fs_stack.h index 010d39d0dc1c..2b1f74b24070 100644 --- a/include/linux/fs_stack.h +++ b/include/linux/fs_stack.h @@ -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)); }