Skip to content
Commit 06ae43f3 authored by Al Viro's avatar Al Viro
Browse files

Don't bother with redoing rw_verify_area() from default_file_splice_from()



default_file_splice_from() ends up calling vfs_write() (via very convoluted
callchain).  It's an overkill, since we already have done rw_verify_area()
in the caller by the time we call vfs_write() we are under set_fs(KERNEL_DS),
so access_ok() is also pointless.  Add a new helper (__kernel_write()),
use it instead of kernel_write() in there.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent f6161aa1
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