lkml.org 
[lkml]   [2016]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC 3/6] afs: Add time limits in the super block
Date
Note that all the filesystems that have such simple limits
will be initialized in the same patch.

Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
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;
--
2.7.4
\
 
 \ /
  Last update: 2016-11-02 16:06    [W:0.084 / U:49.808 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site