]> git.baikalelectronics.ru Git - kernel.git/commit
fs/splice: Pull buf->ops->confirm() from splice_from_pipe actors
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Fri, 17 Dec 2010 07:56:44 +0000 (08:56 +0100)
committerJens Axboe <jaxboe@fusionio.com>
Fri, 17 Dec 2010 07:56:44 +0000 (08:56 +0100)
commit8d93a81d2f0997294f5c4f31dbc8ad1f43775951
treeafbaae1cb71be95f342f6638bfe2d3f1e22dd9a4
parent06903b0beb6a4fe355e2af3a251feefd4c9cd121
fs/splice: Pull buf->ops->confirm() from splice_from_pipe actors

This patch pulls calls to buf->ops->confirm() from all actors passed
(also indirectly) to splice_from_pipe_feed().

Is avoiding the call to buf->ops->confirm() while splice()ing to
/dev/null is an intentional optimization? No other user does that
and this will remove this special case.

Against current linux.git 4179f42bb42d394a3045d6bc3151c626281bcb5f.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
drivers/block/loop.c
fs/nfsd/vfs.c
fs/splice.c