Whamcloud - gitweb
LU-10560 libcfs: Use kernel_write when appropriate 54/31154/17
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Tue, 27 Feb 2018 15:25:59 +0000 (10:25 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 9 Apr 2018 19:48:38 +0000 (19:48 +0000)
commitb9a32054600a8d63948cced361191aa6ae7ea8f2
tree8e6006f118e559618911772d0dc188a8eaf33e88
parent33aad7829de56353cca5bbd082d95d6821a7be9c
LU-10560 libcfs: Use kernel_write when appropriate

Changes in the upstream kernel might have removed
vfs_write() in favor of kernel_write().

Unfortunately, the kernel_write() was initially exported
with an API that is not plug compatible with vfs_write()

The ring down is:
- kernel_write new API
- vfs_write

Change-Id: I67f73786308561dc42b06d51c26bfb94021b7589
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Reviewed-on: https://review.whamcloud.com/31154
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/autoconf/lustre-libcfs.m4
libcfs/include/libcfs/linux/linux-misc.h
libcfs/libcfs/linux/linux-prim.c
libcfs/libcfs/tracefile.c
lustre/obdclass/kernelcomm.c
lustre/osc/osc_request.c
lustre/target/tgt_handler.c