]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5a1a63366ac49184a35c15440576f329e8fc7bfd
treeda838cb9465e63a48fd7adf2f9ef0e799e7dcca4
parentbbce96cfe75c05f07fff65a0775d33303aff669e
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: 21e4aca1b049 ("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