From patchwork Tue Jul 30 01:49:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepa Dinamani X-Patchwork-Id: 11064791 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 59A43746 for ; Tue, 30 Jul 2019 01:51:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 46CC228600 for ; Tue, 30 Jul 2019 01:51:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 36F7A28714; Tue, 30 Jul 2019 01:51:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D8C8B28600 for ; Tue, 30 Jul 2019 01:51:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730988AbfG3BvF (ORCPT ); Mon, 29 Jul 2019 21:51:05 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:37831 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730909AbfG3Buj (ORCPT ); Mon, 29 Jul 2019 21:50:39 -0400 Received: by mail-pl1-f196.google.com with SMTP id b3so28239426plr.4; Mon, 29 Jul 2019 18:50:39 -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=1RF9tSxg4ftPaCa44wQSYVO8OxIT8+s62dDQIN7bX2o=; b=iEU9KPKEpUOeQc+TDqw/j8EP61bJbMSCI7uNc6Xdq7LWM74Uy1YzbFeoOmrAwxgSNo Ay+T+mES8hCLhp7bAwoC6cNDFauOvqOKRflK8MpN3lRzXW38Qo6IFTbh8Zhz3FkSveuo h+pnt/9QISKNzrEL//VZ6KZp5mmpTnX6FZ0Vgi1PB6wn1B8qQkSdsGK8X5dgHsRTT/Se 9SsWbtD9Abw8gA3Xxi5lzsPoCXgL+5sRVQezJJK8gOTmAyWdPJ1cdqIwdcSXUCQQWL3h mGhI3EpiMtJuauLsd7nYM23xklau+V7734ZHdWkigGIj+iNIxHPEDqWqFKgU1F2nQt3H ZWWA== 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=1RF9tSxg4ftPaCa44wQSYVO8OxIT8+s62dDQIN7bX2o=; b=LYm062RJVh+eTaIIZLex6Z3hqE1h0jiF7sifGVzE30Rb5MdrNXvZlN4cwvPbPa5Tsz DFgU30+Ejbqf8wJaOg5pU2dERBHbUPqwrJ9/dmKLAezw0l/gkUNbhwu1jVfpVGdE2pSN jHSZ40yQ/Z6iuVuabglXhYbcmzvs5VCpZ5mZUnQ+xNLeQ/QC8W+mjYouYn7J1h7ps3M+ 3OsQz4dCaV2sy5OW42/OQfUqrBX/KztW3khrHC2D7g01XmJtBzEYcSVsTKbaLb2slxwL PuC6FXw84BC2cscM82DJfnwk3nGQYHiKtzcY5bJ3qmcdRK6DEWCxi5OiriuPS26WR3a9 8xYA== X-Gm-Message-State: APjAAAW2Phsz2JflbQSTX61/uJttCzTuHEt5sFPIMIHQRV1kWEdlqUyL UOyF8mUM0izVuo4W9qpGm3c= X-Google-Smtp-Source: APXvYqwbh2HCKG+rqxkUOX27ALuwe+xOKD139Cl19RTPM9CGSWVCglZ7EgjUivdAahWtSXC/XiaSDA== X-Received: by 2002:a17:902:6b81:: with SMTP id p1mr109757855plk.91.1564451438988; Mon, 29 Jul 2019 18:50:38 -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.37 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 29 Jul 2019 18:50:38 -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, me@bobcopeland.com, linux-karma-devel@lists.sourceforge.net Subject: [PATCH 18/20] fs: omfs: Initialize filesystem timestamp ranges Date: Mon, 29 Jul 2019 18:49:22 -0700 Message-Id: <20190730014924.2193-19-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-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fill in the appropriate limits to avoid inconsistencies in the vfs cached inode times when timestamps are outside the permitted range. Signed-off-by: Deepa Dinamani Cc: me@bobcopeland.com Cc: linux-karma-devel@lists.sourceforge.net Acked-by: Bob Copeland --- fs/omfs/inode.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fs/omfs/inode.c b/fs/omfs/inode.c index 08226a835ec3..b76ec6b88ded 100644 --- a/fs/omfs/inode.c +++ b/fs/omfs/inode.c @@ -478,6 +478,10 @@ static int omfs_fill_super(struct super_block *sb, void *data, int silent) sb->s_maxbytes = 0xffffffff; + sb->s_time_gran = NSEC_PER_MSEC; + sb->s_time_min = 0; + sb->s_time_max = U64_MAX / MSEC_PER_SEC; + sb_set_blocksize(sb, 0x200); bh = sb_bread(sb, 0);