From: Linus Torvalds Date: Sun, 28 Nov 2010 22:09:57 +0000 (-0800) Subject: Export 'get_pipe_info()' to other users X-Git-Tag: v2.6.37-rc4~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c66fb347946ebdd5b10908866ecc9fa05ee2cf3d;p=pandora-kernel.git Export 'get_pipe_info()' to other users And in particular, use it in 'pipe_fcntl()'. The other pipe functions do not need to use the 'careful' version, since they are only ever called for things that are already known to be pipes. The normal read/write/ioctl functions are called through the file operations structures, so if a file isn't a pipe, they'd never get called. But pipe_fcntl() is special, and called directly from the generic fcntl code, and needs to use the same careful function that the splice code is using. Cc: Jens Axboe Cc: Andrew Morton Cc: Al Viro Cc: Dave Jones Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed