Whamcloud - gitweb
LU-7623 libcfs: Properly map page for vfs_write 87/17787/2
authorOleg Drokin <oleg.drokin@intel.com>
Sun, 3 Jan 2016 22:17:58 +0000 (17:17 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 7 Jan 2016 02:49:28 +0000 (02:49 +0000)
commite2a442e3288afec9450a9aef188fe38dce35aab0
tree02ba6fa5aaa6a750b04480b27cf1d63269b0c1d7
parent4594c003e9aa63bde006908e34834a8c134b305c
LU-7623 libcfs: Properly map page for vfs_write

Apparently it's possible that the page might not be mapped before
vfs_write, so map it. Also forcefully mark it __user to make
sparse happy.

This was part of upstream kernel commit 7ebcb731 that somehow
never made it back even though vfs_write changes did.

Change-Id: I88494eac08c02d9cac2476eeb56be1eb65cfc3bf
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Reviewed-on: http://review.whamcloud.com/17787
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
libcfs/libcfs/tracefile.c