{"id":2230331,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2230331/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-ext4/patch/177747215472.4110156.17046590126106040747.stgit@frogsfrogsfrogs/","project":{"id":8,"url":"http://patchwork.ozlabs.org/api/1.1/projects/8/?format=json","name":"Linux ext4 filesystem development","link_name":"linux-ext4","list_id":"linux-ext4.vger.kernel.org","list_email":"linux-ext4@vger.kernel.org","web_url":null,"scm_url":null,"webscm_url":null},"msgid":"<177747215472.4110156.17046590126106040747.stgit@frogsfrogsfrogs>","date":"2026-04-29T14:59:55","name":"[05/10] fuse2fs: debug timestamp updates","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"9d81c981c31a68bbcc8bbfc0977e9164ab6d09dd","submitter":{"id":77032,"url":"http://patchwork.ozlabs.org/api/1.1/people/77032/?format=json","name":"Darrick J. Wong","email":"djwong@kernel.org"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linux-ext4/patch/177747215472.4110156.17046590126106040747.stgit@frogsfrogsfrogs/mbox/","series":[{"id":502091,"url":"http://patchwork.ozlabs.org/api/1.1/series/502091/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-ext4/list/?series=502091","date":"2026-04-29T14:59:24","name":"[01/10] fuse2fs: add strictatime/lazytime mount options","version":1,"mbox":"http://patchwork.ozlabs.org/series/502091/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2230331/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2230331/checks/","tags":{},"headers":{"Return-Path":"\n <SRS0=NVTM=C4=vger.kernel.org=linux-ext4+bounces-16217-patchwork-incoming=ozlabs.org@ozlabs.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linux-ext4@vger.kernel.org"],"Delivered-To":["patchwork-incoming@legolas.ozlabs.org","patchwork-incoming@ozlabs.org"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=c/CzXCB/;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org\n (client-ip=150.107.74.76; helo=mail.ozlabs.org;\n envelope-from=srs0=nvtm=c4=vger.kernel.org=linux-ext4+bounces-16217-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)","gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=\"2600:3c0a:e001:db::12fc:5321\"\n arc.chain=subspace.kernel.org","gandalf.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org","gandalf.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=c/CzXCB/;\n\tdkim-atps=neutral","gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16217-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"c/CzXCB/\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"],"Received":["from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g5LD70tK7z1yHX\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 01:03:51 +1000 (AEST)","from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4g5LD70Q1Qz4wHs\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 01:03:51 +1000 (AEST)","by gandalf.ozlabs.org (Postfix)\n\tid 4g5LD70KBhz4wM1; Thu, 30 Apr 2026 01:03:51 +1000 (AEST)","from sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby gandalf.ozlabs.org (Postfix) with ESMTPS id 4g5LD00dHMz4wHs\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 30 Apr 2026 01:03:44 +1000 (AEST)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id 2B8EC3011591\n\tfor <patchwork-incoming@ozlabs.org>; Wed, 29 Apr 2026 14:59:58 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 40EC936C9CA;\n\tWed, 29 Apr 2026 14:59:57 +0000 (UTC)","from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org\n [10.30.226.201])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 0B2A234D4DE;\n\tWed, 29 Apr 2026 14:59:56 +0000 (UTC)","by smtp.kernel.org (Postfix) with ESMTPSA id C5ECEC19425;\n\tWed, 29 Apr 2026 14:59:55 +0000 (UTC)"],"ARC-Seal":["i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1777475031; cv=pass;\n\tb=em0wz0Q7h0T7gWVs6tI4T2aEqCRpeoDFJIy+POfEJSxfp2V8V9HZn1Qf8GyDY6fOADVQLs8/6vMAJqSZwrfVwUYfGAmMjzYkoWGmO/z2qZrPzaYg31WAaikWf2hI5tkvLPhuTBHv7/hVBGkZuATxjF5eLuhP9LI7Lfgp41eS4eJIZAlatp0SPrVBSdXYZUYmYe1BAVIj/KcM9Bx1A5QaQ5CtRu8qK4POu/Od1l0JtIIFACItDbEtBn0BRyj9jBVvon+FgUbsaotIgpMwPYQwvGSq+obmF4bZMkqIrzOdB8FN9TrtlnyhtwFS9SPX6Rxcy5MWmk9VZbod4b5CoAu6Ug==","i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777474796; cv=none;\n b=E8g4/C72zbPNZwa9S8xWZkxqWTWIvKId3viQobYS99z1YQoAKOC6o0XL1O6PwtmQRfUsOQWNZUIcaIz4vsebl5qHhOYWEQ6fQkn3In9w5vWRYtdmyMSitytJQHF4LFpr3urNy2hpVwe9OJh9a0nn3foMK60sLh7F56afNA1MsYk="],"ARC-Message-Signature":["i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1777475031; c=relaxed/relaxed;\n\tbh=pOAIsLZA/JEeft5oVPnTjb9FUl1P5UKw3/fLl6F04Y0=;\n\th=Date:Subject:From:To:Cc:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=Iz+DAW8gczm2C1x932PafZ+ezqdfIaSqRqEidtE/5iGs5YiuuPQOLXNLOCBiGVHST1VLgJCH38AAFG+YzyXiRp+TWm32EaPh/cc17/MQ6SShxXHq++10URatMEI46/4R2As4rNI4Gh/OihCRhYgBRBiWkEqFS7fQUw0ecUR0PkX4QFJdHuc60ZERTTsp97OfronmWXD0XZrmkN2X2kZUMuRP7WMGT9QrALHx8J8xHdEU3YjrSk6ezgffaYVoopvjeFr5YMov70sFjdXugNw04uHurGPRp1YQ5fIFvKwkYSw4bGL1Dy8UKxgcv3jARIOgi+XvcW2DfDkZ0UyP1kynSQ==","i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777474796; c=relaxed/simple;\n\tbh=wkTRk0lyQcXtUZPg/xHMF/gqicvuifEmlCVCYczKjXI=;\n\th=Date:Subject:From:To:Cc:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=qITYlTVNM+yC4fof6gKEiXokms9NNveDj42Bhb9mSHUneZdoroSHe78vbJBwdnimxmuSFaOO27CZzqvJxuXIELNvhGbrF6O9mzI20AMeEeirdHgxjSC3xn+r2sFZmr55dGjwYdIQ3fUrapGZq+eZNmRxw4WFJaeAquc0BidUgvU="],"ARC-Authentication-Results":["i=2; gandalf.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org;\n dkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=c/CzXCB/; dkim-atps=neutral;\n spf=pass (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16217-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org","i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=c/CzXCB/; arc=none smtp.client-ip=10.30.226.201"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1777474795;\n\tbh=wkTRk0lyQcXtUZPg/xHMF/gqicvuifEmlCVCYczKjXI=;\n\th=Date:Subject:From:To:Cc:In-Reply-To:References:From;\n\tb=c/CzXCB/IjVgBzHF3LFPg+1ku7eOKSqK/g/vlK2yiqh/ItKr+1FQckhdNrp4b1xXo\n\t f2XElRwaVzg16vdO2dqQPcwgTuM1ykBFBGF0e1L5NfATIldc95d22IeFjO/FOrx+Vm\n\t Nl0lz4xuVAuxnw4R8DmgR1knBNYwZgtGujh/+MtxVwrZRRBDbov6f6UUTcckI80217\n\t QyDiJzpZla+ann3nhhdETLvbW8yaFhn64SfjFsaXHDlhXGvZ/wn7/1mWUT7WCeigWH\n\t 4HPIpHPb7FK3pFjVl5rtKW6ld+MPFucwvcZTT8mXtTjSxq1+coXYM/4UWE08/jC96r\n\t XyYkze2bmIWDA==","Date":"Wed, 29 Apr 2026 07:59:55 -0700","Subject":"[PATCH 05/10] fuse2fs: debug timestamp updates","From":"\"Darrick J. Wong\" <djwong@kernel.org>","To":"tytso@mit.edu","Cc":"bernd@bsbernd.com, miklos@szeredi.hu, linux-ext4@vger.kernel.org,\n neal@gompa.dev, linux-fsdevel@vger.kernel.org, fuse-devel@lists.linux.dev,\n joannelkoong@gmail.com","Message-ID":"<177747215472.4110156.17046590126106040747.stgit@frogsfrogsfrogs>","In-Reply-To":"<177747215344.4110156.17216553139316774040.stgit@frogsfrogsfrogs>","References":"<177747215344.4110156.17216553139316774040.stgit@frogsfrogsfrogs>","Precedence":"bulk","X-Mailing-List":"linux-ext4@vger.kernel.org","List-Id":"<linux-ext4.vger.kernel.org>","List-Subscribe":"<mailto:linux-ext4+subscribe@vger.kernel.org>","List-Unsubscribe":"<mailto:linux-ext4+unsubscribe@vger.kernel.org>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"7bit","X-Spam-Status":"No, score=-1.2 required=5.0 tests=ARC_SIGNED,ARC_VALID,\n\tDKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,\n\tMAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=disabled\n\tversion=4.0.1","X-Spam-Checker-Version":"SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org"},"content":"From: Darrick J. Wong <djwong@kernel.org>\n\nAdd tracing for timestamp updates to files.\n\nSigned-off-by: \"Darrick J. Wong\" <djwong@kernel.org>\n---\n misc/fuse2fs.c |   97 +++++++++++++++++++++++++++++++++++---------------------\n 1 file changed, 61 insertions(+), 36 deletions(-)","diff":"diff --git a/misc/fuse2fs.c b/misc/fuse2fs.c\nindex 2e0fdeda963de2..935a66af66603e 100644\n--- a/misc/fuse2fs.c\n+++ b/misc/fuse2fs.c\n@@ -865,7 +865,8 @@ static void increment_version(struct ext2_inode_large *inode)\n \t\tinode->i_version_hi = ver >> 32;\n }\n \n-static void init_times(struct ext2_inode_large *inode)\n+static void fuse2fs_init_timestamps(struct fuse2fs *ff, ext2_ino_t ino,\n+\t\t\t\t    struct ext2_inode_large *inode)\n {\n \tstruct timespec now;\n \n@@ -875,11 +876,15 @@ static void init_times(struct ext2_inode_large *inode)\n \tEXT4_INODE_SET_XTIME(i_mtime, &now, inode);\n \tEXT4_EINODE_SET_XTIME(i_crtime, &now, inode);\n \tincrement_version(inode);\n+\n+\tdbg_printf(ff, \"%s: ino=%u time %ld:%lu\\n\", __func__, ino, now.tv_sec,\n+\t\t   now.tv_nsec);\n }\n \n-static int update_ctime(ext2_filsys fs, ext2_ino_t ino,\n-\t\t\tstruct ext2_inode_large *pinode)\n+static int fuse2fs_update_ctime(struct fuse2fs *ff, ext2_ino_t ino,\n+\t\t\t\tstruct ext2_inode_large *pinode)\n {\n+\text2_filsys fs = ff->fs;\n \terrcode_t err;\n \tstruct timespec now;\n \tstruct ext2_inode_large inode;\n@@ -890,6 +895,10 @@ static int update_ctime(ext2_filsys fs, ext2_ino_t ino,\n \tif (pinode) {\n \t\tincrement_version(pinode);\n \t\tEXT4_INODE_SET_XTIME(i_ctime, &now, pinode);\n+\n+\t\tdbg_printf(ff, \"%s: ino=%u ctime %ld:%lu\\n\", __func__, ino,\n+\t\t\t   now.tv_sec, now.tv_nsec);\n+\n \t\treturn 0;\n \t}\n \n@@ -901,6 +910,9 @@ static int update_ctime(ext2_filsys fs, ext2_ino_t ino,\n \tincrement_version(&inode);\n \tEXT4_INODE_SET_XTIME(i_ctime, &now, &inode);\n \n+\tdbg_printf(ff, \"%s: ino=%u ctime %ld:%lu\\n\", __func__, ino,\n+\t\t   now.tv_sec, now.tv_nsec);\n+\n \terr = fuse2fs_write_inode(fs, ino, &inode);\n \tif (err)\n \t\treturn translate_error(fs, ino, err);\n@@ -908,8 +920,9 @@ static int update_ctime(ext2_filsys fs, ext2_ino_t ino,\n \treturn 0;\n }\n \n-static int update_atime(ext2_filsys fs, ext2_ino_t ino)\n+static int fuse2fs_update_atime(struct fuse2fs *ff, ext2_ino_t ino)\n {\n+\text2_filsys fs = ff->fs;\n \terrcode_t err;\n \tstruct ext2_inode_large inode, *pinode;\n \tstruct timespec atime, mtime, now;\n@@ -928,6 +941,10 @@ static int update_atime(ext2_filsys fs, ext2_ino_t ino)\n \tdmtime = mtime.tv_sec + ((double)mtime.tv_nsec / NSEC_PER_SEC);\n \tdnow = now.tv_sec + ((double)now.tv_nsec / NSEC_PER_SEC);\n \n+\tdbg_printf(ff, \"%s: ino=%u atime %ld:%lu mtime %ld:%lu now %ld:%lu\\n\",\n+\t\t   __func__, ino, atime.tv_sec, atime.tv_nsec, mtime.tv_sec,\n+\t\t   mtime.tv_nsec, now.tv_sec, now.tv_nsec);\n+\n \t/*\n \t * If atime is newer than mtime and atime hasn't been updated in thirty\n \t * seconds, skip the atime update.  Same idea as Linux \"relatime\".  Use\n@@ -944,9 +961,10 @@ static int update_atime(ext2_filsys fs, ext2_ino_t ino)\n \treturn 0;\n }\n \n-static int update_mtime(ext2_filsys fs, ext2_ino_t ino,\n-\t\t\tstruct ext2_inode_large *pinode)\n+static int fuse2fs_update_mtime(struct fuse2fs *ff, ext2_ino_t ino,\n+\t\t\t\tstruct ext2_inode_large *pinode)\n {\n+\text2_filsys fs = ff->fs;\n \terrcode_t err;\n \tstruct ext2_inode_large inode;\n \tstruct timespec now;\n@@ -956,6 +974,10 @@ static int update_mtime(ext2_filsys fs, ext2_ino_t ino,\n \t\tEXT4_INODE_SET_XTIME(i_mtime, &now, pinode);\n \t\tEXT4_INODE_SET_XTIME(i_ctime, &now, pinode);\n \t\tincrement_version(pinode);\n+\n+\t\tdbg_printf(ff, \"%s: ino=%u mtime/ctime %ld:%lu\\n\",\n+\t\t\t   __func__, ino, now.tv_sec, now.tv_nsec);\n+\n \t\treturn 0;\n \t}\n \n@@ -968,6 +990,9 @@ static int update_mtime(ext2_filsys fs, ext2_ino_t ino,\n \tEXT4_INODE_SET_XTIME(i_ctime, &now, &inode);\n \tincrement_version(&inode);\n \n+\tdbg_printf(ff, \"%s: ino=%u mtime/ctime %ld:%lu\\n\",\n+\t\t   __func__, ino, now.tv_sec, now.tv_nsec);\n+\n \terr = fuse2fs_write_inode(fs, ino, &inode);\n \tif (err)\n \t\treturn translate_error(fs, ino, err);\n@@ -2237,7 +2262,7 @@ static int op_readlink(const char *path, char *buf, size_t len)\n \tbuf[len] = 0;\n \n \tif (fuse2fs_is_writeable(ff)) {\n-\t\tret = update_atime(fs, ino);\n+\t\tret = fuse2fs_update_atime(ff, ino);\n \t\tif (ret)\n \t\t\tgoto out;\n \t}\n@@ -2511,7 +2536,7 @@ static int op_mknod(const char *path, mode_t mode, dev_t dev)\n \t\tgoto out2;\n \t}\n \n-\tret = update_mtime(fs, parent, NULL);\n+\tret = fuse2fs_update_mtime(ff, parent, NULL);\n \tif (ret)\n \t\tgoto out2;\n \n@@ -2534,7 +2559,7 @@ static int op_mknod(const char *path, mode_t mode, dev_t dev)\n \t}\n \n \tinode.i_generation = ff->next_generation++;\n-\tinit_times(&inode);\n+\tfuse2fs_init_timestamps(ff, child, &inode);\n \terr = fuse2fs_write_inode(fs, child, &inode);\n \tif (err) {\n \t\tret = translate_error(fs, child, err);\n@@ -2620,7 +2645,7 @@ static int op_mkdir(const char *path, mode_t mode)\n \t\tgoto out2;\n \t}\n \n-\tret = update_mtime(fs, parent, NULL);\n+\tret = fuse2fs_update_mtime(ff, parent, NULL);\n \tif (ret)\n \t\tgoto out2;\n \n@@ -2647,7 +2672,7 @@ static int op_mkdir(const char *path, mode_t mode)\n \tif (parent_sgid)\n \t\tinode.i_mode |= S_ISGID;\n \tinode.i_generation = ff->next_generation++;\n-\tinit_times(&inode);\n+\tfuse2fs_init_timestamps(ff, child, &inode);\n \n \terr = fuse2fs_write_inode(fs, child, &inode);\n \tif (err) {\n@@ -2730,7 +2755,7 @@ static int fuse2fs_unlink(struct fuse2fs *ff, const char *path,\n \tif (err)\n \t\treturn translate_error(fs, dir, err);\n \n-\tret = update_mtime(fs, dir, NULL);\n+\tret = fuse2fs_update_mtime(ff, dir, NULL);\n \tif (ret)\n \t\treturn ret;\n \n@@ -2821,7 +2846,7 @@ static int remove_inode(struct fuse2fs *ff, ext2_ino_t ino)\n \t\t\text2fs_set_dtime(fs, EXT2_INODE(&inode));\n \t}\n \n-\tret = update_ctime(fs, ino, &inode);\n+\tret = fuse2fs_update_ctime(ff, ino, &inode);\n \tif (ret)\n \t\treturn ret;\n \n@@ -2991,7 +3016,7 @@ static int __op_rmdir(struct fuse2fs *ff, const char *path)\n \t\t\tgoto out;\n \t\t}\n \t\text2fs_dec_nlink(EXT2_INODE(&inode));\n-\t\tret = update_mtime(fs, rds.parent, &inode);\n+\t\tret = fuse2fs_update_mtime(ff, rds.parent, &inode);\n \t\tif (ret)\n \t\t\tgoto out;\n \t\terr = fuse2fs_write_inode(fs, rds.parent, &inode);\n@@ -3088,7 +3113,7 @@ static int op_symlink(const char *src, const char *dest)\n \t}\n \n \t/* Update parent dir's mtime */\n-\tret = update_mtime(fs, parent, NULL);\n+\tret = fuse2fs_update_mtime(ff, parent, NULL);\n \tif (ret)\n \t\tgoto out2;\n \n@@ -3112,7 +3137,7 @@ static int op_symlink(const char *src, const char *dest)\n \tfuse2fs_set_uid(&inode, ctxt->uid);\n \tfuse2fs_set_gid(&inode, gid);\n \tinode.i_generation = ff->next_generation++;\n-\tinit_times(&inode);\n+\tfuse2fs_init_timestamps(ff, child, &inode);\n \n \terr = fuse2fs_write_inode(fs, child, &inode);\n \tif (err) {\n@@ -3397,11 +3422,11 @@ static int op_rename(const char *from, const char *to,\n \t}\n \n \t/* Update timestamps */\n-\tret = update_ctime(fs, from_ino, NULL);\n+\tret = fuse2fs_update_ctime(ff, from_ino, NULL);\n \tif (ret)\n \t\tgoto out2;\n \n-\tret = update_mtime(fs, to_dir_ino, NULL);\n+\tret = fuse2fs_update_mtime(ff, to_dir_ino, NULL);\n \tif (ret)\n \t\tgoto out2;\n \n@@ -3495,7 +3520,7 @@ static int op_link(const char *src, const char *dest)\n \t}\n \n \text2fs_inc_nlink(fs, EXT2_INODE(&inode));\n-\tret = update_ctime(fs, ino, &inode);\n+\tret = fuse2fs_update_ctime(ff, ino, &inode);\n \tif (ret)\n \t\tgoto out2;\n \n@@ -3514,7 +3539,7 @@ static int op_link(const char *src, const char *dest)\n \t\tgoto out2;\n \t}\n \n-\tret = update_mtime(fs, parent, NULL);\n+\tret = fuse2fs_update_mtime(ff, parent, NULL);\n \tif (ret)\n \t\tgoto out2;\n \n@@ -3662,7 +3687,7 @@ static int op_chmod(const char *path, mode_t mode, struct fuse_file_info *fi)\n \n \tinode.i_mode = new_mode;\n \n-\tret = update_ctime(fs, ino, &inode);\n+\tret = fuse2fs_update_ctime(ff, ino, &inode);\n \tif (ret)\n \t\tgoto out;\n \n@@ -3729,7 +3754,7 @@ static int op_chown(const char *path, uid_t owner, gid_t group,\n \t\tfuse2fs_set_gid(&inode, group);\n \t}\n \n-\tret = update_ctime(fs, ino, &inode);\n+\tret = fuse2fs_update_ctime(ff, ino, &inode);\n \tif (ret)\n \t\tgoto out;\n \n@@ -3859,7 +3884,7 @@ static int fuse2fs_truncate(struct fuse2fs *ff, ext2_ino_t ino, off_t new_size)\n \tif (err)\n \t\treturn translate_error(fs, ino, err);\n \n-\tret = update_mtime(fs, ino, NULL);\n+\tret = fuse2fs_update_mtime(ff, ino, NULL);\n \tif (ret)\n \t\treturn ret;\n \n@@ -4094,7 +4119,7 @@ static int op_read(const char *path EXT2FS_ATTR((unused)), char *buf,\n \t}\n \n \tif (fh->check_flags != X_OK && fuse2fs_is_writeable(ff)) {\n-\t\tret = update_atime(fs, fh->ino);\n+\t\tret = fuse2fs_update_atime(ff, fh->ino);\n \t\tif (ret)\n \t\t\tgoto out;\n \t}\n@@ -4178,7 +4203,7 @@ static int op_write(const char *path EXT2FS_ATTR((unused)),\n \t\tgoto out;\n \t}\n \n-\tret = update_mtime(fs, fh->ino, NULL);\n+\tret = fuse2fs_update_mtime(ff, fh->ino, NULL);\n \tif (ret)\n \t\tgoto out;\n \n@@ -4540,7 +4565,7 @@ static int op_setxattr(const char *path EXT2FS_ATTR((unused)),\n \t\tgoto out2;\n \t}\n \n-\tret = update_ctime(fs, ino, NULL);\n+\tret = fuse2fs_update_ctime(ff, ino, NULL);\n out2:\n \terr = ext2fs_xattrs_close(&h);\n \tif (!ret && err)\n@@ -4634,7 +4659,7 @@ static int op_removexattr(const char *path, const char *key)\n \t\tgoto out2;\n \t}\n \n-\tret = update_ctime(fs, ino, NULL);\n+\tret = fuse2fs_update_ctime(ff, ino, NULL);\n out2:\n \terr = ext2fs_xattrs_close(&h);\n \tif (err && !ret)\n@@ -4752,7 +4777,7 @@ static int op_readdir(const char *path EXT2FS_ATTR((unused)), void *buf,\n \t}\n \n \tif (fuse2fs_is_writeable(ff)) {\n-\t\tret = update_atime(i.fs, fh->ino);\n+\t\tret = fuse2fs_update_atime(ff, fh->ino);\n \t\tif (ret)\n \t\t\tgoto out;\n \t}\n@@ -4857,7 +4882,7 @@ static int op_create(const char *path, mode_t mode, struct fuse_file_info *fp)\n \t\tgoto out2;\n \t}\n \n-\tret = update_mtime(fs, parent, NULL);\n+\tret = fuse2fs_update_mtime(ff, parent, NULL);\n \tif (ret)\n \t\tgoto out2;\n \n@@ -4888,7 +4913,7 @@ static int op_create(const char *path, mode_t mode, struct fuse_file_info *fp)\n \t}\n \n \tinode.i_generation = ff->next_generation++;\n-\tinit_times(&inode);\n+\tfuse2fs_init_timestamps(ff, child, &inode);\n \terr = fuse2fs_write_inode(fs, child, &inode);\n \tif (err) {\n \t\tret = translate_error(fs, child, err);\n@@ -4972,7 +4997,7 @@ static int op_utimens(const char *path, const struct timespec ctv[2],\n \tif (tv[1].tv_nsec != UTIME_OMIT)\n \t\tEXT4_INODE_SET_XTIME(i_mtime, &tv[1], &inode);\n #endif /* UTIME_OMIT */\n-\tret = update_ctime(fs, ino, &inode);\n+\tret = fuse2fs_update_ctime(ff, ino, &inode);\n \tif (ret)\n \t\tgoto out;\n \n@@ -5040,7 +5065,7 @@ static int ioctl_setflags(struct fuse2fs *ff, struct fuse2fs_file_handle *fh,\n \tif (ret)\n \t\treturn ret;\n \n-\tret = update_ctime(fs, fh->ino, &inode);\n+\tret = fuse2fs_update_ctime(ff, fh->ino, &inode);\n \tif (ret)\n \t\treturn ret;\n \n@@ -5087,7 +5112,7 @@ static int ioctl_setversion(struct fuse2fs *ff, struct fuse2fs_file_handle *fh,\n \n \tinode.i_generation = generation;\n \n-\tret = update_ctime(fs, fh->ino, &inode);\n+\tret = fuse2fs_update_ctime(ff, fh->ino, &inode);\n \tif (ret)\n \t\treturn ret;\n \n@@ -5218,7 +5243,7 @@ static int ioctl_fssetxattr(struct fuse2fs *ff, struct fuse2fs_file_handle *fh,\n \tif (ext2fs_inode_includes(inode_size, i_projid))\n \t\tinode.i_projid = fsx->fsx_projid;\n \n-\tret = update_ctime(fs, fh->ino, &inode);\n+\tret = fuse2fs_update_ctime(ff, fh->ino, &inode);\n \tif (ret)\n \t\treturn ret;\n \n@@ -5490,7 +5515,7 @@ static int fuse2fs_allocate_range(struct fuse2fs *ff,\n \t\t}\n \t}\n \n-\terr = update_mtime(fs, fh->ino, &inode);\n+\terr = fuse2fs_update_mtime(ff, fh->ino, &inode);\n \tif (err)\n \t\treturn err;\n \n@@ -5663,7 +5688,7 @@ static int fuse2fs_punch_range(struct fuse2fs *ff,\n \t\t\treturn translate_error(fs, fh->ino, err);\n \t}\n \n-\terr = update_mtime(fs, fh->ino, &inode);\n+\terr = fuse2fs_update_mtime(ff, fh->ino, &inode);\n \tif (err)\n \t\treturn err;\n \n","prefixes":["05/10"]}