splice: direct_splice_actor() should not use pos in sd
authorChangli Gao <xiaosuo@gmail.com>
Tue, 29 Jun 2010 11:09:18 +0000 (13:09 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Wed, 30 Jun 2010 06:12:37 +0000 (08:12 +0200)
commit2cb4b05e7647891b46b91c07c9a60304803d1688
tree7eae6d9fbee1d85feabb942c4a826700c4d6f9a3
parent984bc9601f64fd341b8573021d7c999f1f1499a9
splice: direct_splice_actor() should not use pos in sd

direct_splice_actor() shouldn't use sd->pos, as sd->pos is for file reading,
file->f_pos should be used instead.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
----
 fs/splice.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
fs/splice.c