]> git.baikalelectronics.ru Git - kernel.git/commit
smb3: Fix regression in time handling
authorSteve French <stfrench@microsoft.com>
Tue, 8 Oct 2019 05:27:14 +0000 (00:27 -0500)
committerSteve French <stfrench@microsoft.com>
Wed, 9 Oct 2019 05:10:38 +0000 (00:10 -0500)
commitaa2b26930c5695d231bf864a0c6301d0ba6fc936
tree1f79f374c1bef713b1f80041d42198683a6a6ef1
parent4ffc64f26dbdb40fc259788736ad63a28f60eedf
smb3: Fix regression in time handling

Fixes: 16d9b67c5023 ("cifs: Initialize filesystem timestamp ranges")
Only very old servers (e.g. OS/2 and DOS) did not support
DCE TIME (100 nanosecond granularity).  Fix the checks used
to set minimum and maximum times.

Fixes xfstest generic/258 (on 5.4-rc1 and later)

CC: Deepa Dinamani <deepa.kernel@gmail.com>
Acked-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
fs/cifs/cifsfs.c