From: Changli Gao Date: Wed, 4 Nov 2009 08:09:52 +0000 (+0100) Subject: sendfile(): check f_op.splice_write() rather than f_op.sendpage() X-Git-Tag: v2.6.33-rc1~379^2~71 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc56f7de7f00d188c7c4da1e9861581853b9e92f;p=pandora-kernel.git sendfile(): check f_op.splice_write() rather than f_op.sendpage() sendfile(2) was reworked with the splice infrastructure, but it still checks f_op.sendpage() instead of f_op.splice_write() wrongly. Although if f_op.sendpage() exists, f_op.splice_write() always exists at the same time currently, the assumption will be broken in future silently. This patch also brings a side effect: sendfile(2) can work with any output file. Some security checks related to f_op are added too. Signed-off-by: Changli Gao Signed-off-by: Jens Axboe --- Reading git-diff-tree failed