Whamcloud - gitweb
LU-10560 libcfs: Use kernel_write when appropriate
[fs/lustre-release.git] / libcfs / include / libcfs / linux / linux-misc.h
index 68f37ec..06f58e2 100644 (file)
@@ -33,6 +33,7 @@
 #ifndef __LIBCFS_LINUX_MISC_H__
 #define __LIBCFS_LINUX_MISC_H__
 
+#include <linux/fs.h>
 #include <linux/mutex.h>
 #include <linux/user_namespace.h>
 
@@ -116,6 +117,8 @@ int cfs_get_environ(const char *key, char *value, int *val_len);
 #define wait_queue_entry_t wait_queue_t
 #endif
 
+int cfs_kernel_write(struct file *filp, char *buf, size_t count, loff_t *pos);
+
 /*
  * For RHEL6 struct kernel_parm_ops doesn't exist. Also
  * the arguments for .set and .get take different