diff options
author | Deepa Dinamani <deepa.kernel@gmail.com> | 2019-03-06 14:09:42 -0800 |
---|---|---|
committer | Deepa Dinamani <deepa.kernel@gmail.com> | 2019-08-30 07:27:18 -0700 |
commit | d5c6e2d5188d9677462f3827034d060372a13b6e (patch) | |
tree | a2f3340de6810873bc72dfcbe077de84570373a2 /fs/9p | |
parent | 22b139691f9eb8b9d0bfd7341fa7436cb7a9491d (diff) | |
download | linux-d5c6e2d5188d9677462f3827034d060372a13b6e.tar.gz linux-d5c6e2d5188d9677462f3827034d060372a13b6e.tar.bz2 linux-d5c6e2d5188d9677462f3827034d060372a13b6e.zip |
9p: Fill min and max timestamps in sb
struct p9_wstat and struct p9_stat_dotl indicate that the
wire transport uses u32 and u64 fields for timestamps.
Fill in the appropriate limits to avoid inconsistencies in
the vfs cached inode times when timestamps are outside the
permitted range.
Note that the upper bound for V9FS_PROTO_2000L is retained as S64_MAX.
This is because that is the upper bound supported by vfs.
Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Acked-by: Jeff Layton <jlayton@kernel.org>
Cc: ericvh@gmail.com
Cc: lucho@ionkov.net
Cc: asmadeus@codewreck.org
Cc: v9fs-developer@lists.sourceforge.net
Diffstat (limited to 'fs/9p')
-rw-r--r-- | fs/9p/vfs_super.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/9p/vfs_super.c b/fs/9p/vfs_super.c index 08112fbcaece..ca243e658d71 100644 --- a/fs/9p/vfs_super.c +++ b/fs/9p/vfs_super.c @@ -69,8 +69,12 @@ v9fs_fill_super(struct super_block *sb, struct v9fs_session_info *v9ses, if (v9fs_proto_dotl(v9ses)) { sb->s_op = &v9fs_super_ops_dotl; sb->s_xattr = v9fs_xattr_handlers; - } else + } else { sb->s_op = &v9fs_super_ops; + sb->s_time_max = U32_MAX; + } + + sb->s_time_min = 0; ret = super_setup_bdi(sb); if (ret) |