+ romfs-advance-destination-buffer-pointer-when-reading-from-a-blockdev.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     romfs: advance destination buffer pointer when reading from a blockdev
has been added to the -mm tree.  Its filename is
     romfs-advance-destination-buffer-pointer-when-reading-from-a-blockdev.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: romfs: advance destination buffer pointer when reading from a blockdev
From: David Howells <dhowells@xxxxxxxxxx>

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@xxxxxxxxxx>
Tested-by: Michal Simek <monstr@xxxxxxxxx>
Cc: David Woodhouse <dwmw2@xxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 fs/romfs/storage.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN fs/romfs/storage.c~romfs-advance-destination-buffer-pointer-when-reading-from-a-blockdev fs/romfs/storage.c
--- a/fs/romfs/storage.c~romfs-advance-destination-buffer-pointer-when-reading-from-a-blockdev
+++ a/fs/romfs/storage.c
@@ -120,6 +120,7 @@ static int romfs_blk_read(struct super_b
 			return -EIO;
 		memcpy(buf, bh->b_data + offset, segment);
 		brelse(bh);
+		buf += segment;
 		buflen -= segment;
 		pos += segment;
 	}
_

Patches currently in -mm which might be from dhowells@xxxxxxxxxx are

slow-work-delete-timers-properly.patch
mn10300-update-the-asb2303-defconfig.patch
cachefiles-fix-the-documentation-to-use-the-correct-credential-pointer-names.patch
romfs-romfs_lookup-shouldnt-be-doing-a-partial-name-comparison.patch
romfs-advance-destination-buffer-pointer-when-reading-from-a-blockdev.patch
rxrpc-fix-error-handling-for-rxrpc_alloc_connection.patch
frv-duplicate-output_buffer-of-e03.patch
slow_work_thread-should-do-the-exclusive-wait.patch
rework-fix-is_single_threaded.patch
kmap_types-make-most-arches-use-generic-header-file.patch
flat-fix-data-sections-alignment.patch
mutex-subsystem-synchro-test-module.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux