]> git.baikalelectronics.ru Git - kernel.git/commit
ROMFS: Advance destination buffer pointer when reading from a blockdev
authorDavid Howells <dhowells@redhat.com>
Thu, 23 Apr 2009 15:41:18 +0000 (16:41 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Apr 2009 20:28:31 +0000 (13:28 -0700)
commit23b78a84a833f8b6c330e15f9ec693da40a598be
tree7ff42b7aa3f05bcf61cfdb7abb2c23418b218291
parent0258c47a6cc9a25145b64246b5dfb7e2f605c0ea
ROMFS: Advance destination buffer pointer when reading from a blockdev

RomFS should advance the destination buffer pointer when reading data from a
blockdev source (the data may be split over multiple blocks, each requiring its
own sb_read() call).  Without this, all the data is copied to the beginning of
the output buffer.

Signed-off-by: David Howells <dhowells@redhat.com>
Tested-by: Michal Simek <monstr@monstr.eu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/romfs/storage.c