]> git.baikalelectronics.ru Git - kernel.git/commit
Don't bother with redoing rw_verify_area() from default_file_splice_from()
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 20 Mar 2013 17:19:30 +0000 (13:19 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 21 Mar 2013 17:11:11 +0000 (13:11 -0400)
commitb3d7fde42000da981dd4ea48c61bc2a268e0f29c
treeb74fe0c7e9370dfed956a1607dd10282c9ba1096
parent025d7a061973fce562117d8afddd51b81bc911f1
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 <viro@zeniv.linux.org.uk>
fs/internal.h
fs/read_write.c
fs/splice.c