All of lore.kernel.org
 help / color / mirror / Atom feed
* + fs-reorder-struct-inotify_device-on-64bits-to-remove-padding.patch added to -mm tree
@ 2008-12-07  7:47 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2008-12-07  7:47 UTC (permalink / raw)
  To: mm-commits; +Cc: richard, viro


The patch titled
     fs: reorder struct inotify_device on 64bits to remove padding
has been added to the -mm tree.  Its filename is
     fs-reorder-struct-inotify_device-on-64bits-to-remove-padding.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: fs: reorder struct inotify_device on 64bits to remove padding
From: Richard Kennedy <richard@rsk.demon.co.uk>

Reorder struct inotify_device to remove 8 bytes of padding on 64bit
builds, reducing size to 128 bytes.  Therefore allocating from a smaller
slab & using one fewer cachelines.

Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 fs/inotify_user.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN fs/inotify_user.c~fs-reorder-struct-inotify_device-on-64bits-to-remove-padding fs/inotify_user.c
--- a/fs/inotify_user.c~fs-reorder-struct-inotify_device-on-64bits-to-remove-padding
+++ a/fs/inotify_user.c
@@ -76,10 +76,10 @@ struct inotify_device {
 	struct mutex		ev_mutex;	/* protects event queue */
 	struct mutex		up_mutex;	/* synchronizes watch updates */
 	struct list_head 	events;		/* list of queued events */
-	atomic_t		count;		/* reference count */
 	struct user_struct	*user;		/* user who opened this dev */
 	struct inotify_handle	*ih;		/* inotify handle */
 	struct fasync_struct    *fa;            /* async notification */
+	atomic_t		count;		/* reference count */
 	unsigned int		queue_size;	/* size of the queue (bytes) */
 	unsigned int		event_count;	/* number of pending events */
 	unsigned int		max_events;	/* maximum number of events */
_

Patches currently in -mm which might be from richard@rsk.demon.co.uk are

origin.patch
linux-next.patch
fs-reorder-struct-inotify_device-on-64bits-to-remove-padding.patch


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

only message in thread, other threads:[~2008-12-07  7:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-07  7:47 + fs-reorder-struct-inotify_device-on-64bits-to-remove-padding.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.