Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp928081pxb; Tue, 3 Nov 2020 16:59:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJxOWHQl8J7PvcvZ+YerH22ydAF/xjICrxWE/ndYK9E77qtSrmjb1uhF2d/NpMFVGY33jj3O X-Received: by 2002:a17:906:1411:: with SMTP id p17mr23802220ejc.102.1604451566954; Tue, 03 Nov 2020 16:59:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604451566; cv=none; d=google.com; s=arc-20160816; b=IR7xx6glCwugSgq5Ke/g02Pp2uYXgSaCjVuKIw1kgnVGCg0tia5AukwX37dAjbmpEW UghJVYN4ADfreZJSwgv2ojsOT4G9fYraOIwcyhuRwHKVwQH59uwa7kI1LRgbp9O7B76R ETP+tZxZmFuuXH+XajQlHGNiGsGpg+oilE2cG7K2fElIBg81PJ8XXs32cjTBNmNBxSFf vMKkOnk8saYui8/YCUFFYhy4N22UJH4QcndRKFyL4K4EeozX2XnORDl7W2wi5ogK7h+2 mwACqKRd63ncq8KFNOzEUhDgCA9E1wJjc3aWMd842lAovZKmcPEFI6dLyAtgxYYeD1+r m00Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=9nCQYb4Umvz6b8IzKHe4bgqiZtF5PpUpApPFFO/PygA=; b=y8RZuvwoow5bU0/z6k2ws+tQXJEGiBRGQy9x14OiLsb3O8lI8H8Ic1fhM12zSgHpwT dWT+CKAjrQH4f3n3VXNtouk/NX1mCVKeS+udReHrP+HwYtO+jwPZnvvY6lB+dZw/FY9m G1GuSvkCNEpTelEySbqoGuZiKkOAYRWhLPFkatyabSzA1FvOtJXgVK84OyBA95gFVq6x /spsMN23Hw8jAelSH5iQfTIFbQtNAC88acgoH1d/kERzPd0bbMeHXQ4EjNWstrqqo3Lv b9ne7QYADr/XSeoAwHcz2/+VqRjFkcmIB97wGOww2tfbicWuxm3+1j3+H44GjiKb+E4N 89Zw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i59si215349edd.308.2020.11.03.16.58.54; Tue, 03 Nov 2020 16:59:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730188AbgKDA5N (ORCPT + 99 others); Tue, 3 Nov 2020 19:57:13 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:6741 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728157AbgKDA5M (ORCPT ); Tue, 3 Nov 2020 19:57:12 -0500 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CQpC56dJqzkdqR; Wed, 4 Nov 2020 08:57:05 +0800 (CST) Received: from [10.136.114.67] (10.136.114.67) by smtp.huawei.com (10.3.19.209) with Microsoft SMTP Server (TLS) id 14.3.487.0; Wed, 4 Nov 2020 08:57:07 +0800 Subject: Re: [PATCH] erofs: derive atime instead of leaving it empty To: Gao Xiang , , Chao Yu CC: LKML , Gao Xiang , nl6720 , stable References: <20201031195102.21221-1-hsiangkao.ref@aol.com> <20201031195102.21221-1-hsiangkao@aol.com> From: Chao Yu Message-ID: Date: Wed, 4 Nov 2020 08:57:07 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20201031195102.21221-1-hsiangkao@aol.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.136.114.67] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/11/1 3:51, Gao Xiang wrote: > From: Gao Xiang > > EROFS has _only one_ ondisk timestamp (ctime is currently > documented and recorded, we might also record mtime instead > with a new compat feature if needed) for each extended inode > since EROFS isn't mainly for archival purposes so no need to > keep all timestamps on disk especially for Android scenarios > due to security concerns. Also, romfs/cramfs don't have their > own on-disk timestamp, and squashfs only records mtime instead. > > Let's also derive access time from ondisk timestamp rather than > leaving it empty, and if mtime/atime for each file are really > needed for specific scenarios as well, we can also use xattrs > to record them then. > > Reported-by: nl6720 > [ Gao Xiang: It'd be better to backport for user-friendly concern. ] > Fixes: 431339ba9042 ("staging: erofs: add inode operations") > Cc: stable # 4.19+ > Signed-off-by: Gao Xiang Looks good to me. :) Reviewed-by: Chao Yu Thanks,