Commit faa0b4ee authored by Pavel Shilovsky's avatar Pavel Shilovsky

Fixed direct problem for centos53

parent ec892bb0
...@@ -881,7 +881,7 @@ struct file_operations cifs_file_ops = { ...@@ -881,7 +881,7 @@ struct file_operations cifs_file_ops = {
const const
#endif #endif
struct file_operations cifs_file_direct_ops = { struct file_operations cifs_file_direct_ops = {
/* no mmap, no aio, no readv - /* no aio, no readv -
BB reevaluate whether they can be done with directio, no cache */ BB reevaluate whether they can be done with directio, no cache */
.read = cifs_user_read, .read = cifs_user_read,
.write = cifs_user_write, .write = cifs_user_write,
...@@ -890,6 +890,7 @@ struct file_operations cifs_file_direct_ops = { ...@@ -890,6 +890,7 @@ struct file_operations cifs_file_direct_ops = {
.lock = cifs_lock, .lock = cifs_lock,
.fsync = cifs_fsync, .fsync = cifs_fsync,
.flush = cifs_flush, .flush = cifs_flush,
.mmap = cifs_file_mmap,
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22) #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)
.sendfile = generic_file_sendfile, /* BB removeme BB */ .sendfile = generic_file_sendfile, /* BB removeme BB */
#else #else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment