From: Al Viro Date: Wed, 20 Mar 2013 17:19:30 +0000 (-0400) Subject: Don't bother with redoing rw_verify_area() from default_file_splice_from() X-Git-Tag: v3.9-rc5~27^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06ae43f34bcc07a0b6be8bf78a1c895bcd12c839;p=pandora-kernel.git 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: Al Viro --- Reading git-diff-tree failed