Now that I think we've fixed the deadlocks a different way, we _might_
be able to re-introduce a more generic sendfile().
We should also change the name of the dang thing at least internally,
since it has very little to do with sending a file any more. And
furthermore we should probably introduce an internal file operation that
is the reverse of our misnamed "sendfile", ie a "receive actor" (we
already have the notion of actors, but we don't use them for receiving
directly into a "struct file *").
Then we could actually do a real "copyfile()", by just matching up the
source file "sendfile()" function with the destination file "receive
actor" function and letting it rip. That should allow true "move the
page cache page from one file to another" copies of files, for example.
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/