All of lore.kernel.org
 help / color / mirror / Atom feed
* + memstick-remove-unused-field-from-state-struct.patch added to -mm tree
@ 2012-10-09 20:59 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2012-10-09 20:59 UTC (permalink / raw)
  To: mm-commits; +Cc: maximlevitsky, axboe, geert, oakad


The patch titled
     Subject: memstick: remove unused field from state struct
has been added to the -mm tree.  Its filename is
     memstick-remove-unused-field-from-state-struct.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 ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Maxim Levitsky <maximlevitsky@gmail.com>
Subject: memstick: remove unused field from state struct

Oops, I forgot that I have thet field there already.  Just save memory by
not allocating it.

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Alex Dubov <oakad@yahoo.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/memstick/core/ms_block.h |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff -puN drivers/memstick/core/ms_block.h~memstick-remove-unused-field-from-state-struct drivers/memstick/core/ms_block.h
--- a/drivers/memstick/core/ms_block.h~memstick-remove-unused-field-from-state-struct
+++ a/drivers/memstick/core/ms_block.h
@@ -162,7 +162,6 @@ struct msb_data {
 	struct workqueue_struct		*io_queue;
 	bool				io_queue_stopped;
 	struct work_struct		io_work;
-	struct scatterlist		prealloc_sg[MS_BLOCK_MAX_SEGS+1];
 	bool				card_dead;
 
 	/* Media properties */
@@ -194,7 +193,7 @@ struct msb_data {
 
 	/* Preallocated buffers */
 	unsigned char			*block_buffer;
-	struct scatterlist		sg[MS_BLOCK_MAX_SEGS+1];
+	struct scatterlist		prealloc_sg[MS_BLOCK_MAX_SEGS+1];
 
 
 	/* handler's local data */
_

Patches currently in -mm which might be from maximlevitsky@gmail.com are

origin.patch
linux-next.patch
memstick-remove-unused-field-from-state-struct.patch
memstick-ms_block-fix-complile-issue.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-10-09 20:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-09 20:59 + memstick-remove-unused-field-from-state-struct.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.