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:41:08 +0000 (14:41 +0200)
commit5c9fbedeea75065c9b38fac0662a59564143f06f
tree6f17bf0e8a49cd613b1e5d10452a53f37c0b9e03
parentd247169055ae9d093ab48e637fd0c197011a139f
cifs: Check the IOCB_DIRECT flag, not O_DIRECT

[ Upstream commit 994fd530a512597ffcd713b0f6d5bc916c5698f0 ]

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