cifs: Allow directIO read/write during cache=strict
authorNamjae Jeon <namjae.jeon@samsung.com>
Fri, 22 Aug 2014 05:22:51 +0000 (14:22 +0900)
committerSteve French <smfrench@gmail.com>
Fri, 22 Aug 2014 05:20:39 +0000 (00:20 -0500)
Currently cifs have all or nothing approach for directIO operations.
cache=strict mode does not allow directIO while cache=none mode performs
all the operations as directIO even when user does not specify O_DIRECT
flag. This patch enables strict cache mode to honour directIO semantics.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Ashish Sangwan <a.sangwan@samsung.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/dir.c
fs/cifs/file.c

diff --cc fs/cifs/dir.c
Simple merge
diff --cc fs/cifs/file.c
Simple merge