]> granicus.if.org Git - zfs/commit
Linux 4.14 compat: vfs_read & vfs_write
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 16 Nov 2017 01:19:23 +0000 (17:19 -0800)
committerGitHub <noreply@github.com>
Thu, 16 Nov 2017 01:19:23 +0000 (17:19 -0800)
commited19bccfb651843fa208232b3a2d3d22a4152bc8
treeacfc58ea9f9a8d996cc566e7b43b4c01b2abea5c
parent35a44fcb8d6e346f51be82dfe57562c2ea0c6a9c
Linux 4.14 compat: vfs_read & vfs_write

The kernel_read & kernel_write functions have always wrapped the
vfs_read & vfs_write functions respectively.  However, they could
not be used by vn_rdwr() since the offset wasn't passed as a
pointer.  This prevented us from being able to properly update
the file offset.

Linux 4.14 unexported vfs_read & vfs_write but also changed the
signature of kernel_read & kernel_write to provide the needed
functionality.  Use these updated functions when available.

Reviewed-by: Pritam Baral <pritam@pritambaral.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #656
Closes #667
config/spl-build.m4
include/linux/file_compat.h
module/spl/spl-vnode.c