splice: check f_mode for seekable file
commit73759b079bcc5f30d357cf78e10dd3506371a830
authorChangli Gao <xiaosuo@gmail.com>
Tue, 29 Jun 2010 11:10:36 +0000 (29 13:10 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:30:07 +0000 (2 10:30 -0700)
tree7a59fad805041611b3d1c5e636f73818c71fb35c
parentf2df0ea492e2c5ce9c71d8d261522d817986d269
splice: check f_mode for seekable file

commit 19c9a49b432f245c6293508d164a4350f1f2c601 upstream.

check f_mode for seekable file

As a seekable file is allowed without a llseek function, so the old way isn't
work any more.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/splice.c