From patchwork Wed Nov 2 15:04:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepa Dinamani X-Patchwork-Id: 9409323 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 4796360722 for ; Wed, 2 Nov 2016 15:05:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 39A9E2A2F4 for ; Wed, 2 Nov 2016 15:05:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2E8F82A2F9; Wed, 2 Nov 2016 15:05:24 +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 BD43E2A2F4 for ; Wed, 2 Nov 2016 15:05:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755917AbcKBPFP (ORCPT ); Wed, 2 Nov 2016 11:05:15 -0400 Received: from mail-yb0-f196.google.com ([209.85.213.196]:35157 "EHLO mail-yb0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753761AbcKBPFM (ORCPT ); Wed, 2 Nov 2016 11:05:12 -0400 Received: by mail-yb0-f196.google.com with SMTP id e129so332964yba.2; Wed, 02 Nov 2016 08:05:12 -0700 (PDT) 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=mqUkPhTO5U1BeQfoLvM9ZOAPxe+v0uLf6DBw96nkLIDABlvGBHozfljP4zLSFugHdq 47joMSCmUByzsWjVkHkBZ67ZqqVJHbF3XHmfvKUh8bJHYL6mk9JuhZrRCGE3c3TcliMW E/cDs0gA5K5oxOUgKlN9YL2uWmsQZorFkzuhg24MVvUtnLYWq4y4ox0c2vJX7obvxLej i0I2WjmZmyhdlMLtUBxIJCBd6H/9EV/Wppp73esmQ/2w+8d6rfUJTaD+IXH55PsxJW/b rPiVD/KkCgs0WaS3qHSYEPBrpEq1B23VZM/HDHCbJZ5tzJUcg6cGPRY3NTNhhxECjKPW kQZg== 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=ErNYlmIFESrfuZzSN7KJRgDP78C87XMHIOqPGOXJm0l7yY4/TE8Rw1fF4Nfaih2LfA nkzLahXD5AF6/V19JEFzLTrLSyIlUwn26J3fEk78oMesga1n1qA3OLxRAa3oUi5LhcBZ VuzUxVPk4xy+iKFWuk0fvcqYr88+TgHQPLY+dBRfBmMyQiVSzU8hNYAm7qCgZLyP53HU 9ZfLBVVvBGA6TDHB40OScLCmt+nc/JhmluRoPNXPYBuLvUTOm+SohPc/DgQq69ovr3P8 RG/WfB5P9CBR8R/SLbESKF5zizHyKfnuFvbuLFiBboatoiv/FmT1SP4S48OW0Hks0Ojc y62w== X-Gm-Message-State: ABUngveBme1TA+WUOTz/koqMLGwUFQyNo0E/Ku0/KZxXWqF8br5fhtI+CTbxycMJ+w4spA== X-Received: by 10.37.230.201 with SMTP id d192mr3103392ybh.84.1478099111958; Wed, 02 Nov 2016 08:05:11 -0700 (PDT) Received: from deepa-ubuntu.hil-sfecghh.abq.wayport.net (ip-64-134-56-224.public.wayport.net. [64.134.56.224]) by smtp.gmail.com with ESMTPSA id m126sm723358ywf.14.2016.11.02.08.05.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Nov 2016 08:05:11 -0700 (PDT) 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, 2 Nov 2016 08:04:53 -0700 Message-Id: <1478099096-25637-4-git-send-email-deepa.kernel@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1478099096-25637-1-git-send-email-deepa.kernel@gmail.com> References: <1478099096-25637-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;