cifs: do not return atime less than mtime
authorSteve French <stfrench@microsoft.com>
Sat, 22 Sep 2018 17:07:06 +0000 (12:07 -0500)
committerSteve French <stfrench@microsoft.com>
Wed, 24 Oct 2018 02:16:05 +0000 (21:16 -0500)
commit9b9c5bea0b960616d638711d0ecc270c3a074e7f
treeae8b0d2c9121e9a368530f6e8d11c4eb0b3dc68d
parent3d621230b8a0c6616f32b86ec3f0bc3ead9eb5b8
cifs: do not return atime less than mtime

In network file system it is fairly easy for server and client
atime vs. mtime to get confused (and atime updated less frequently)
which we noticed broke some apps which expect atime >= mtime

Also ignore relatime mount option (rather than error on it) since
relatime is basically what some network server fs are doing
(relatime).

Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
fs/cifs/connect.c
fs/cifs/file.c
fs/cifs/inode.c