Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4468568ybi; Tue, 30 Jul 2019 02:35:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqyzziPCZaFXEF3Vn13zX9SQ9cReLw/E0pQzcdbxEbA9UMNr2ezYZujlgpEUWXEmDYBU+57u X-Received: by 2002:a63:8ac3:: with SMTP id y186mr107769141pgd.13.1564479345237; Tue, 30 Jul 2019 02:35:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564479345; cv=none; d=google.com; s=arc-20160816; b=cl06tPVlbRlwhmOahr5D0YjhnMJ3yQg+ftLv5JOPk55sOYAxlGV96A5MB00z0ifaPn NFKtprXYxQtkesSqoWjfJib0giV2eQawFjW5Lw84jTSteuGuTXXL9AVi7bK0bvzyKEtr gz8/g2B1OYQrr7y644KRN/jX1zVNu0FxxeKRzqRNob/Zf4OJCsl9lANGL/9ourKe6fiZ M4xiBX/KlrN7K6JuO/9wGHb5GuUBRu0KuZ0+rRgRKFUt/3wXKcaO9GFzT0VARIblL+0r jIbnaoza0G2sSsHlLQRduxIADkB25sDTXIRyyFCF5ns/XVJOX46avnOnRLUtK2u1x9PB NXrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=2pzcazUl/YPKOksb7vbUDmWoTVBPfLTioSqOrhqez9Y=; b=DB5Pg1WpAYd7Ck3k6y7vf0b4+XpdzyhFSlhCWhGOQkRK2jRRcr5hTYC12u5tjdiwFS BKtc3hSbMW7VVwiki7UkU9VAMTzJxvJvYf0RuwyP0R0h8axrKHeRQimN6BEwIbt4BQWX 2kr5ZTkL5NbCCzAtZ+glLtzWaOtr/VqJ3uO73X3NO6hAGokqQrUu50tdzKyeBJ0O05Es Q+gKlbTQppli/DFdpXFSpDwFhaATTXktKfrRAtIjoH6lB8f0dZCSs0NjTqhGqlVomRJp ZXmLKo9Obl0AJ5ASg9cOLP+/7uxMGRtu8N65CyE2MMimD+e0wmTtw563XrMXCRJpuyUm Pvvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pLw9p0nt; 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; 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 r26si29211223pgv.189.2019.07.30.02.35.30; Tue, 30 Jul 2019 02:35:45 -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=pass header.i=@gmail.com header.s=20161025 header.b=pLw9p0nt; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731019AbfG3BvO (ORCPT + 99 others); Mon, 29 Jul 2019 21:51:14 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:33457 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730900AbfG3Buh (ORCPT ); Mon, 29 Jul 2019 21:50:37 -0400 Received: by mail-pg1-f194.google.com with SMTP id f20so19935370pgj.0; Mon, 29 Jul 2019 18:50:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2pzcazUl/YPKOksb7vbUDmWoTVBPfLTioSqOrhqez9Y=; b=pLw9p0nt0hUU7YWjb96e0yxgbLIaZW3MxiGngSf7VlziEjgE3XYrQpkwVaK9yDBbKZ Zh15d7rg5YUakKBN8gZARrsLnY2tm4Zd0XabmRrln1L7IJL5PBbNCUbrg0nJ35oOmQwu M4uoxxYroyZpW+Io7Lc2Kjx5snWpyeHkcGTMMguW+EwimhSS34kane0RA/t87gz/BVkk 7KQP3+dAfeHoCVF9pi6M+/1hvr1yhCmcigOyOd1yTca9pXr4oJQBPyrYClPiM/2gIWgL miFY53BeQJz1qpTxfSfEGtGYMrA7luW27vw0WhaXKs3o3BKSDGR/FYdihKvOVDdOIMrv wwDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=2pzcazUl/YPKOksb7vbUDmWoTVBPfLTioSqOrhqez9Y=; b=BSSTCJiW49MSPXuWKZEJ3fbvpsVP9cU12ZTLuZiHoUXXCT58NADXf5CRCvhcu1qzoq t0w0JHtesADYmvWtPMR4/SQWyXl5QPCA8HUN9v3ESMArtvgLsvOspy0oJIKCAArN0wK+ ZjVnMeRNFg8zuJEjTPNKHcKsnjOv2MP6+E3HMArNDFqV+NLUxFUKuYSRqkgQ7c2d8LtL L03T6UZ6CS7ZQcRw25i34XSaAwujxGxZdrlfX21c304RXAYVHnjGEgwFp4fO0H/jygPp pZiWU7wIePvWNg3Kg6tSvDHlL7X+rCzbU6CwAJNvMJ2R8OOEhZHV1WSrMywdKdpSeP7h Mn9w== X-Gm-Message-State: APjAAAVP7fqZwGhZYpldoj6QFbEuBBKz7ati4OmvbOw8voqAOEZ1BkjU 2jm727DpmAqJf5B6ZbKXVyc= X-Received: by 2002:a62:cec4:: with SMTP id y187mr39052123pfg.84.1564451437010; Mon, 29 Jul 2019 18:50:37 -0700 (PDT) Received: from deepa-ubuntu.lan (c-98-234-52-230.hsd1.ca.comcast.net. [98.234.52.230]) by smtp.gmail.com with ESMTPSA id r6sm138807156pjb.22.2019.07.29.18.50.36 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 29 Jul 2019 18:50:36 -0700 (PDT) From: Deepa Dinamani To: viro@zeniv.linux.org.uk, linux-kernel@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org, arnd@arndb.de, y2038@lists.linaro.org, hubcap@omnibond.com, martin@omnibond.com, devel@lists.orangefs.org Subject: [PATCH 16/20] fs: orangefs: Initialize filesystem timestamp ranges Date: Mon, 29 Jul 2019 18:49:20 -0700 Message-Id: <20190730014924.2193-17-deepa.kernel@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190730014924.2193-1-deepa.kernel@gmail.com> References: <20190730014924.2193-1-deepa.kernel@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fill in the appropriate limits to avoid inconsistencies in the vfs cached inode times when timestamps are outside the permitted range. Assume the limits as unsigned according to the below commit 98e8eef557a9 ("changed PVFS_time from int64_t to uint64_t") in https://github.com/waltligon/orangefs Author: Neill Miller Date: Thu Sep 2 15:00:38 2004 +0000 Signed-off-by: Deepa Dinamani Cc: hubcap@omnibond.com Cc: martin@omnibond.com Cc: devel@lists.orangefs.org --- fs/orangefs/super.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/orangefs/super.c b/fs/orangefs/super.c index ee5efdc35cc1..dcd97e8158b1 100644 --- a/fs/orangefs/super.c +++ b/fs/orangefs/super.c @@ -439,6 +439,8 @@ static int orangefs_fill_sb(struct super_block *sb, sb->s_blocksize = PAGE_SIZE; sb->s_blocksize_bits = PAGE_SHIFT; sb->s_maxbytes = MAX_LFS_FILESIZE; + sb->s_time_min = 0; + sb->s_time_max = S64_MAX; ret = super_setup_bdi(sb); if (ret) -- 2.17.1