From: Hans Verkuil Date: Fri, 13 Dec 2013 16:13:45 +0000 (-0300) Subject: [media] vb2: Improve file I/O emulation to handle buffers in any order X-Git-Tag: v3.14-rc1~20^2~109 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88e268702bfba78448abd20a31129458707383aa;p=pandora-kernel.git [media] vb2: Improve file I/O emulation to handle buffers in any order videobuf2 file I/O emulation assumed that buffers dequeued from the driver would return in the order they were enqueued in the driver. Improve the file I/O emulator's book-keeping to remove this assumption. Also set the buf->size properly if a write() dequeues a buffer and the VB2_FILEIO_WRITE_IMMEDIATELY flag is set. Based on an initial patch by Andy Walls. Signed-off-by: Hans Verkuil Reviewed-by: Andy Walls Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed