[PATCH] splice: fix problem introduced with inode diet
authorJens Axboe <jens.axboe@oracle.com>
Sat, 4 Nov 2006 11:49:32 +0000 (12:49 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 4 Nov 2006 16:45:39 +0000 (08:45 -0800)
commitddac0d39cf437d02fde9795ae57d9c4b4c146de9
tree36766a2ff9e4872f06d9c4e4b269758647aa3cf6
parentaaa9b971398f62ab97c1da4f7c352667eb3452c9
[PATCH] splice: fix problem introduced with inode diet

After the inode slimming patch that unionised i_pipe/i_bdev/i_cdev, it's
no longer enough to check for existance of ->i_pipe to verify that this
is a pipe.

Original patch from Eric Dumazet <dada1@cosmosbay.com>
Final solution suggested by Linus.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/splice.c