OSDN Git Service

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)
commit994fd530a512597ffcd713b0f6d5bc916c5698f0
tree7e7a1a076f304ca1ff462eb6b6e3113018152c31
parent5a5dcfd1e8789053730908c96639151b4151c4d0
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