Received: by 10.213.65.68 with SMTP id h4csp187423imn; Thu, 15 Mar 2018 13:40:06 -0700 (PDT) X-Google-Smtp-Source: AG47ELspfwSIcvNmzYYp/3hee3B60vomcb1AneYyM9UaxkLmvPmHFKEaEwyNXhMZmTiZ28EAAJml X-Received: by 2002:a17:902:690b:: with SMTP id j11-v6mr9626723plk.124.1521146406031; Thu, 15 Mar 2018 13:40:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521146405; cv=none; d=google.com; s=arc-20160816; b=XcpXGL3xH1mEguesumZr34dZC/gou/iX+Gj671KgRUaaMdfUZiHdEG3CPVduBysK7s W+NPR+tzhiOmDJ0836817/Bm7FNiQYdquYbtbbyuSHehETVMGNE5dAkz5C59oCA7zHv5 pDXmmNB4Klv1AJON1XdcfVO/ADMdwH+6svp5Np4TxJBkhzueDK5cZWEYF8mzStC7Jyat /NgAFWM6y/BMnAfWSrLJp3Tdj6kxaG+wbpqFJqB1xJ5RFvfqMrwngoOheeptFbl4RWJq cR8tXS+lUgiRYjDJY7E4ELsAIsOZjxhNdvYVqm3FkFPkhOMESf6Nck4T5ZPFjMX1SRkE WSmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=7/4YHGRjyG85zjBECWH1NT1BVKIHAOgvXuxNI19BuRs=; b=yvAgpcxpIVx3mllQta6DB5EinU+fe0aNF5XCSo2OwvZXhJcJktUr3YTjK3L++WgLrk BLZs0fRhIpBLLET9VcGrOCvdiybt/Xy93sgqh2k0RAVm11uVN/L2yXJEnId5wows0Z3u ZEjxJLyXiYFgDWf2+7XUnfYA5+a45W03MeWZ1lxqxTQHVjtklZ24gZQA9DPz0cAcuFBe l6sb07WMBfq/gKivbXZEB2a418hZ/WEUJwMuu31aYe6ch2M+tX3eulvY0gdE0uStXedP qnEGG3xAGu2o0fOiLg+fDqxfaJGEZglFYcShfmFXwQwYtz0SUkry86hNSEOSA5A8IgFK BaHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=MGBnc8pL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z74si4350335pfd.257.2018.03.15.13.39.49; Thu, 15 Mar 2018 13:40:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=MGBnc8pL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752864AbeCOUic (ORCPT + 99 others); Thu, 15 Mar 2018 16:38:32 -0400 Received: from mail-qt0-f195.google.com ([209.85.216.195]:43760 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752707AbeCOUia (ORCPT ); Thu, 15 Mar 2018 16:38:30 -0400 Received: by mail-qt0-f195.google.com with SMTP id s48so8688171qtb.10; Thu, 15 Mar 2018 13:38:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=7/4YHGRjyG85zjBECWH1NT1BVKIHAOgvXuxNI19BuRs=; b=MGBnc8pL0AGCy6GLgZMoOaOul/CNQU1yhAQSV2umEOgnQMT6ggfPvbJUcGcr1Pwktj Q+x7zjTq3goLVsHSEg/N5DOzLCBayh/5/YaPGuafOBNwEAhFRoECWRUUq89/7g8xygtV kqgErOvcsX3boiMUQk5fbwq4a1KxFCqakUw26RxoKfu55H+X1ne6KIEWemh74g5LR0VP 9+nB0Tw+otO1chml/3BbyRL4d+7zih4H/9HXz648Tq3CHF5JIuqPDeafnuZvIkBrvQ3N QQDzU9p9E2IXegVonaZh8wnU646Dzld8wjt11m+8O3WtHRMcCOR/rrEbgBXYa1FyrrvT 8HsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=7/4YHGRjyG85zjBECWH1NT1BVKIHAOgvXuxNI19BuRs=; b=ZIj8p0bHF5KzfYwPpOmemlQEpgj+JkIbLPx8bWafUZN6IvZbAHm7ArYp2kA792sd9Q MtOWj35ac/y+lVFryGqy5XjXTaKjyplaj+RiNFLkqDPaM8D57hTmVaGbN+WN809T8a13 xmfJt1xRqpuOTqoExYpxzccy0d2hiYQpEp2NNkCFHdXkbRqhQCvg67TEgoMzmkjqugTE pqn8rPiVGywiUiIJhQtAlX2GlMkrFU9YmZM8xFSoyYhey7aQp9CqXmj9FG6UUSO+h//B Si/oxz1fjwRMIaJgTWj3EdkfCv4vVPNv6tloD5UaqTmDel06w35flcg6dxwnq3Cubf5U Qwsg== X-Gm-Message-State: AElRT7GDLslqiUyDVfmjupMF90bxUd58RV94nmsnNi9T4wAIfdrk/UvQ lmJp16rZeQLC3vQlvFvUz9TSQwzof3/GySEgiy4= X-Received: by 10.200.47.26 with SMTP id j26mr13055773qta.185.1521146309850; Thu, 15 Mar 2018 13:38:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.185.46 with HTTP; Thu, 15 Mar 2018 13:38:29 -0700 (PDT) In-Reply-To: References: <1520705944-6723-1-git-send-email-jix024@eng.ucsd.edu> <1520705944-6723-4-git-send-email-jix024@eng.ucsd.edu> <20180315045401.GB4860@magnolia> From: Arnd Bergmann Date: Thu, 15 Mar 2018 21:38:29 +0100 X-Google-Sender-Auth: f7o6TARw8_RtTf218ZFhlWP9vB8 Message-ID: Subject: Re: [RFC v2 03/83] Add super.h. To: Andiry Xu Cc: "Darrick J. Wong" , Linux FS Devel , Linux Kernel Mailing List , "linux-nvdimm@lists.01.org" , Dan Williams , "Rudoff, Andy" , coughlan@redhat.com, Steven Swanson , Dave Chinner , Jan Kara , swhiteho@redhat.com, miklos@szeredi.hu, Jian Xu , Andiry Xu Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 15, 2018 at 6:51 PM, Andiry Xu wrote: > On Thu, Mar 15, 2018 at 2:05 AM, Arnd Bergmann wrote: >> On Thu, Mar 15, 2018 at 7:11 AM, Andiry Xu wrote: > > Superblock mtime is not a big problem as it is updated rarely. 64-bit > seconds and 32-bit nanoseconds make the inode and log entry bigger, > and updating file->atime cannot be done with a single 64bit update. > That may be annoying and needs to use journaling. If this is a big concern, you could use a format similar to what ext4 has: 30 bits of nanoseconds, and 34 bits of seconds, where the upper two bits count the epoch. That gives you a time range from years 1902 to 2446. You could also have a resolution of less than a nanosecond. Note that today, the file time stamps generated by the kernel are in jiffies resolution, so at best one millisecond. However, most modern file systems go with the 64+32 bit timestamps because it's not all that expensive. Arnd