]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: Check the IOCB_DIRECT flag, not O_DIRECT
authorDavid Howells <dhowells@redhat.com>
Wed, 6 Apr 2022 23:03:14 +0000 (00:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Apr 2022 12:38:56 +0000 (14:38 +0200)
commitb2d47fda78973021f2f6ca0d2e30482f9aba8d96
treef157a4897323e1416f2ea44fac491e838e9fa52d
parent52688cdd9ed3d83c9d445b4b61f231154f0ffa22
cifs: Check the IOCB_DIRECT flag, not O_DIRECT

[ Upstream commit d4b76505883b8e7fa34e19cd36298e3415d95f63 ]

Use the IOCB_DIRECT indicator flag on the I/O context rather than checking to
see if the file was opened O_DIRECT.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Steve French <sfrench@samba.org>
cc: Shyam Prasad N <nspmangalore@gmail.com>
cc: Rohith Surabattula <rohiths.msft@gmail.com>
cc: linux-cifs@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/cifsfs.c