Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp7187512ybh; Thu, 8 Aug 2019 11:29:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqz2JIFaMncKwaTQn0ID3/EXtAvWZqF8N+1pd79CTDlifaFwKxQPduXLmboDjDsH7WEKODh7 X-Received: by 2002:a65:6096:: with SMTP id t22mr13010700pgu.204.1565288960607; Thu, 08 Aug 2019 11:29:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565288960; cv=none; d=google.com; s=arc-20160816; b=wAYGaejrXKOpZEYOXLlT469ODbIIZjdwf+z9QsFeLP97H8O63ENyIN7Mxlmr9XmAbI 15ki6oKU9MgjKjRv5YipNtZ8JRlWbJCtRRbXq6TM9Uj7PBhPBzRkQb6FtkIRZYhITnLS tHK2GbX85b42EDFkhxz8eSlwI099eZX3iJW7cUlyvzpzawFVxEfm6+osCdxLkvHM9kKW NQZmDpT5dLLipHVJ9VGdB1hAQVdBElpU5D15E8h8K8DW1QX9ptWG1YuQprRsgGmXyHaz MasYD8c2JlmPGwNi4fFX9UA/qRG8fLSIHguc/h+SonLTN2wwdAuCSr6ooTmk6jyRQqA7 zoKA== 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 :in-reply-to:references:mime-version:dkim-signature; bh=JP31KWXxB5g0ATua8LYOvPZ42m/v4rF4TStXnIb5Wjo=; b=hFIlSrVZz9QfknyxSSSmcR3iZiKpTCZ9+QctGeb3jW7rLPR2V2pG62LgZxugVKOBVk whV2HoZnitpwLDzpNg73P++hL02EpyZ163Z4L2INOUeOO8yqgb2CTb+edlBHAqUMqZHf 327WstFvrogDabX9SoY/9j8tn6/AMOeXzlFCvNC4ltMpBj1s/risqaaT02PFlAPw22Ex PpO56N+NiLgqqxJbH2cVPmxvpzvr4zAm8UCyVAS4IM9GUY035f9lf90f+wsjegMsC9Av SiSwmiieqVk5Q3hAICq0ouXiAfDPdkJ6Hl1CCy7BGdsR5vPh1YD+S6KSx1FqXYHZ6mZk cCFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nByiJIjp; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h98si47790411plb.206.2019.08.08.11.29.00; Thu, 08 Aug 2019 11:29:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nByiJIjp; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732544AbfHHS2K (ORCPT + 99 others); Thu, 8 Aug 2019 14:28:10 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:42312 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725535AbfHHS2K (ORCPT ); Thu, 8 Aug 2019 14:28:10 -0400 Received: by mail-ot1-f66.google.com with SMTP id l15so122504140otn.9; Thu, 08 Aug 2019 11:28:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JP31KWXxB5g0ATua8LYOvPZ42m/v4rF4TStXnIb5Wjo=; b=nByiJIjprASucnNzVSdLuIdgXtP4B3tGEGEVsOJKICYYa+Fw0MLan8TTtYsjZBIqGS R7ad+Oh3wPEDTxf56rDQ+qLoJr229H524vy3fsjCPnZaGxBuOoDm7f6F9oGhtMwGfWmG F1xsKK3h1vXSZRGnSSgMDiGucJqq1uQcJbveOxTF9jQaTV7dl6Dhil/qkUnL+AN/vnzD gSXr94oJtAXdJ99rbJNlFOBq2yzvAJEtUTWYb8xcfQ2Da0wet6TfBczRhL4I3LiWNfN3 kb8TyLMtSkLsxAXeJJi2cIgYrZTyooUBwfONKqhvEjJ7XWUl6jKqc5IBV4ega6w5DH2m NPYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JP31KWXxB5g0ATua8LYOvPZ42m/v4rF4TStXnIb5Wjo=; b=agtmCJNRPlM8GuV3TgF8TmvP/Nm2Djuc21K6YJk1F14icRr3kvawU+ssoFmiX/GLp9 16lm9w4iemLvjLLND7UPzVZsxNdQ1huwTnaE//XpH1exFPHmHSoKSDUY4KRJGw1Opx+v AalF6MXhIFPh7iarGvUVTUSQLiONTLpkCQ8kWp1AlbZQ8JiQp67JxR/LI5nOockIdTve nBy/IkKkczfkFtCQTBVL9T9l1sd1a6I1OPHJ/a6LCI4bmOc//KLBsIOOxItWA1pW5mwc ulguhfSAVJHutUUtcwpAyuV4CZRnqKX8arD4q+yT96AiTMwPx1Jnu/RMgwpLSC7fVPWS 6SDg== X-Gm-Message-State: APjAAAXI8aBfFMyL0w5guMz0pZdOQb520NXbivd2lPZFjQ1LgqkwU9QC Y2s49liETmXGi1Ip1AJCvRPmcc8tcEH37CZgv0vHh6jD X-Received: by 2002:a6b:f406:: with SMTP id i6mr16160255iog.110.1565288889403; Thu, 08 Aug 2019 11:28:09 -0700 (PDT) MIME-Version: 1.0 References: <20190730014924.2193-1-deepa.kernel@gmail.com> <20190730014924.2193-10-deepa.kernel@gmail.com> <20190731152609.GB7077@magnolia> <20190801224344.GC17372@mit.edu> <20190802154341.GB4308@mit.edu> <20190802213944.GE4308@mit.edu> <20190803160257.GG4308@mit.edu> In-Reply-To: From: Deepa Dinamani Date: Thu, 8 Aug 2019 11:27:57 -0700 Message-ID: Subject: Re: [PATCH 09/20] ext4: Initialize timestamps limits To: Andreas Dilger Cc: Arnd Bergmann , "Theodore Y. Ts'o" , "Darrick J. Wong" , Alexander Viro , Linux Kernel Mailing List , Linux FS-devel Mailing List , y2038 Mailman List , Ext4 Developers List Content-Type: text/plain; charset="UTF-8" Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org > Rather than printing a warning at mount time (which may be confusing > to users for a problem they may never see), it makes sense to only > print such a warning in the vanishingly small case that someone actually > tries to modify the inode timestamp but it doesn't fit, rather than on > the theoretical case that may never happen. Arnd and I were discussing and we came to a similar conclusion that we would not warn at mount. Arnd suggested maybe we include a pr_warn_ratelimited() when we do write to these special inodes. In general, there is an agreement to leave the fs granularity to a higher resolution for such super blocks. And hence, the timestamps for these special cases will never be clamped in memory.(Assuming we do not want to make more changes and try to do something like __ext4_expand_extra_isize() for in memory inode updates) We could easily try to clamp these timestamps when they get written out to the disk by modifying the EXT4_INODE_SET_XTIME to include such a clamp. And, at this point we could also warn. If this is acceptable, I could post an update. -Deepa