Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 810627a0 authored by Pavel Shilovsky's avatar Pavel Shilovsky Committed by Steve French
Browse files

[CIFS] Add mmap for direct, nobrl cifs mount types



without mmap functions in file_ops OpenOffice can't save changes in
existing document. The same situation you can see with gedit. Also, a.out
format of files can't be executed without mmap.

Signed-off-by: default avatarPavel Shilovsky <piastryyy@gmail.com>
Reviewed-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent ae6be51e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -808,6 +808,7 @@ const struct file_operations cifs_file_direct_nobrl_ops = {
	.release = cifs_close,
	.fsync = cifs_fsync,
	.flush = cifs_flush,
	.mmap = cifs_file_mmap,
	.splice_read = generic_file_splice_read,
#ifdef CONFIG_CIFS_POSIX
	.unlocked_ioctl  = cifs_ioctl,