9p: Fill min and max timestamps in sb
authorDeepa Dinamani <deepa.kernel@gmail.com>
Wed, 6 Mar 2019 22:09:42 +0000 (14:09 -0800)
committerDeepa Dinamani <deepa.kernel@gmail.com>
Fri, 30 Aug 2019 14:27:18 +0000 (07:27 -0700)
commitd5c6e2d5188d9677462f3827034d060372a13b6e
treea2f3340de6810873bc72dfcbe077de84570373a2
parent22b139691f9eb8b9d0bfd7341fa7436cb7a9491d
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
fs/9p/vfs_super.c