public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fs: inode - remove 8 bytes of padding on 64bits allowing 1 more objects/slab under slub
@ 2010-02-15 11:16 Richard Kennedy
  2010-02-15 11:29 ` Jan Kara
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Kennedy @ 2010-02-15 11:16 UTC (permalink / raw)
  To: Matthew Wilcox, Al Viro, Andrew Morton, Jan Kara,
	Christoph Hellwig
  Cc: lkml, linux-fsdevel, Jens Axboe

This removes 8 bytes of padding from struct inode on 64bit builds, and
so allows 1 more object/slab in the inode_cache when using slub.

Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>
----
patch against 2.6.33-rc8
compiled & tested on x86_64 AMDX2 

I've been running this patch for over a week with no obvious problems
regards
Richard


diff --git a/include/linux/fs.h b/include/linux/fs.h
index b1bcb27..ebb1cd5 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -729,6 +729,7 @@ struct inode {
 	uid_t			i_uid;
 	gid_t			i_gid;
 	dev_t			i_rdev;
+	unsigned int		i_blkbits;
 	u64			i_version;
 	loff_t			i_size;
 #ifdef __NEED_I_SIZE_ORDERED
@@ -738,7 +739,6 @@ struct inode {
 	struct timespec		i_mtime;
 	struct timespec		i_ctime;
 	blkcnt_t		i_blocks;
-	unsigned int		i_blkbits;
 	unsigned short          i_bytes;
 	umode_t			i_mode;
 	spinlock_t		i_lock;	/* i_blocks, i_bytes, maybe i_size */



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] fs: inode - remove 8 bytes of padding on 64bits allowing 1 more objects/slab under slub
  2010-02-15 11:16 [PATCH] fs: inode - remove 8 bytes of padding on 64bits allowing 1 more objects/slab under slub Richard Kennedy
@ 2010-02-15 11:29 ` Jan Kara
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Kara @ 2010-02-15 11:29 UTC (permalink / raw)
  To: Richard Kennedy
  Cc: Matthew Wilcox, Al Viro, Andrew Morton, Jan Kara,
	Christoph Hellwig, lkml, linux-fsdevel, Jens Axboe

On Mon 15-02-10 11:16:11, Richard Kennedy wrote:
> This removes 8 bytes of padding from struct inode on 64bit builds, and
> so allows 1 more object/slab in the inode_cache when using slub.
> 
> Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>
  Looks good to me.
Acked-by: Jan Kara <jack@suse.cz>

								Honza
> ----
> patch against 2.6.33-rc8
> compiled & tested on x86_64 AMDX2 
> 
> I've been running this patch for over a week with no obvious problems
> regards
> Richard
> 
> 
> diff --git a/include/linux/fs.h b/include/linux/fs.h
> index b1bcb27..ebb1cd5 100644
> --- a/include/linux/fs.h
> +++ b/include/linux/fs.h
> @@ -729,6 +729,7 @@ struct inode {
>  	uid_t			i_uid;
>  	gid_t			i_gid;
>  	dev_t			i_rdev;
> +	unsigned int		i_blkbits;
>  	u64			i_version;
>  	loff_t			i_size;
>  #ifdef __NEED_I_SIZE_ORDERED
> @@ -738,7 +739,6 @@ struct inode {
>  	struct timespec		i_mtime;
>  	struct timespec		i_ctime;
>  	blkcnt_t		i_blocks;
> -	unsigned int		i_blkbits;
>  	unsigned short          i_bytes;
>  	umode_t			i_mode;
>  	spinlock_t		i_lock;	/* i_blocks, i_bytes, maybe i_size */
> 
> 
-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-15 11:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-15 11:16 [PATCH] fs: inode - remove 8 bytes of padding on 64bits allowing 1 more objects/slab under slub Richard Kennedy
2010-02-15 11:29 ` Jan Kara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox