]> 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)
committerSteve French <stfrench@microsoft.com>
Fri, 8 Apr 2022 14:01:59 +0000 (09:01 -0500)
commitd4b76505883b8e7fa34e19cd36298e3415d95f63
tree7e7a1a076f304ca1ff462eb6b6e3113018152c31
parent52762b4647c37809461cb2cd7f45aa55a17ac8ff
cifs: Check the IOCB_DIRECT flag, not O_DIRECT

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>
fs/cifs/cifsfs.c