fs: cifs: Fix atime update check vs mtime
authorDeepa Dinamani <deepa.kernel@gmail.com>
Sat, 30 Nov 2019 05:30:25 +0000 (21:30 -0800)
committerSteve French <stfrench@microsoft.com>
Mon, 2 Dec 2019 21:15:35 +0000 (15:15 -0600)
commit69738cfdfa7032f45d9e7462d24490e61cf163dd
treeda838cb9465e63a48fd7adf2f9ef0e799e7dcca4
parent6f582b273ec23332074d970a7fb25bef835df71f
fs: cifs: Fix atime update check vs mtime

According to the comment in the code and commit log, some apps
expect atime >= mtime; but the introduced code results in
atime==mtime.  Fix the comparison to guard against atime<mtime.

Fixes: 9b9c5bea0b96 ("cifs: do not return atime less than mtime")
Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Cc: stfrench@microsoft.com
Cc: linux-cifs@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/inode.c