From patchwork Thu Nov 24 00:47:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepa Dinamani X-Patchwork-Id: 9444579 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1C44260779 for ; Thu, 24 Nov 2016 00:49:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 16DAA27D76 for ; Thu, 24 Nov 2016 00:49:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0B741279D1; Thu, 24 Nov 2016 00:49:23 +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=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID 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 90D6027D76 for ; Thu, 24 Nov 2016 00:49:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935651AbcKXAsm (ORCPT ); Wed, 23 Nov 2016 19:48:42 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:34870 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935120AbcKXAsj (ORCPT ); Wed, 23 Nov 2016 19:48:39 -0500 Received: by mail-pg0-f67.google.com with SMTP id p66so2150968pga.2; Wed, 23 Nov 2016 16:48:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZS8BN5ebHHw0i84OxPcTHuQkvoLno4vNUOl9ZxA+m+E=; b=IBcLy5UiGgfGtRjOpSDGOs3ZW/JtgInQYqobmAlfqyYPNz2PfusVxOeoI7DYxIKtxw A4UG09m271Q3DWELBnCoIpBgdCDC3dBg/l7/NvQJByWn0KQCkdv4qu5gzAs2+71ZDJJR EZ2Xo+i89YHKEsNwy0oA7+u4ubV4vmiFx48R6rdMvPeD9nlmi5eL4pbpXtBjXng7IDOm nif9vEbw7VcC+4OrnHwh05FjuUs4hYbopyiBm8xWadh72EWLwOgjkKiEjZAMO33Pu0gS MidZ/vWpP9WZroiozTGlNmnk6KLD2YEKAjR+m4/51IiHoz5j1+RTTvGKfuNc7FmRD5gm Fq3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZS8BN5ebHHw0i84OxPcTHuQkvoLno4vNUOl9ZxA+m+E=; b=guCewcRiaQbICackobbJG602ijK83WhDJ3NXbZlOXdYvlkEWNANQsgU7Jrh9aIRt9J 84fZ6TBZA+n7i8mBa34ZSRfwuQtKtwEN1fDxLmePmvZ9742DOd+dT/mU/Sl1X/vFrE7V a9R3TNDtmZDIfnfZ/KO0TzDcWZYzNrGcs7txpLX7RylOGQT6ZloWS7JsGYDAHeS6aZNS TG6FKkyEBZcZQ1Twz4tWJYwlefb0RjH0xGzOxfTwwSU8NqFKwH8Qt/EUeB+mHfpqM5wF Uonlt+zXr1m4+SFakLJNKX/x6rGKd9QHWqtSjSXhI0xKK90NtJkRvphBA3dvHVSRvtIp l/sg== X-Gm-Message-State: AKaTC034qZXGiynCAnmmCH82kySNJX6Eh1SEeB4ggd98xtV8tKvE2e1s3kDwgZ0s/1tnYg== X-Received: by 10.84.137.1 with SMTP id 1mr12338925plm.8.1479948490589; Wed, 23 Nov 2016 16:48:10 -0800 (PST) Received: from localhost.localdomain (c-24-6-102-171.hsd1.ca.comcast.net. [24.6.102.171]) by smtp.gmail.com with ESMTPSA id i11sm37364702pgn.17.2016.11.23.16.48.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Nov 2016 16:48:10 -0800 (PST) From: Deepa Dinamani To: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: arnd@arndb.de, tglx@linutronix.de, gregkh@linuxfoundation.org, akpm@linux-foundation.org, tytso@mit.edu, viro@zeniv.linux.org.uk, y2038@lists.linaro.org, linux-afs@lists.infradead.org Subject: [RFC 3/6] afs: Add time limits in the super block Date: Wed, 23 Nov 2016 16:47:47 -0800 Message-Id: <1479948470-2397-4-git-send-email-deepa.kernel@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1479948470-2397-1-git-send-email-deepa.kernel@gmail.com> References: <1479948470-2397-1-git-send-email-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 Note that all the filesystems that have such simple limits will be initialized in the same patch. Signed-off-by: Deepa Dinamani Cc: linux-afs@lists.infradead.org --- fs/afs/super.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/afs/super.c b/fs/afs/super.c index fbdb022..ab00434 100644 --- a/fs/afs/super.c +++ b/fs/afs/super.c @@ -321,6 +321,8 @@ static int afs_fill_super(struct super_block *sb, sb->s_op = &afs_super_ops; sb->s_bdi = &as->volume->bdi; strlcpy(sb->s_id, as->volume->vlocation->vldb.name, sizeof(sb->s_id)); + sb->s_time_max = Y2106_EXPIRY_TIMESTAMP; + sb->s_time_min = 0; /* allocate the root inode and dentry */ fid.vid = as->volume->vid;