From: Theodore Ts'o Date: Wed, 27 Sep 2006 08:50:32 +0000 (-0700) Subject: [GFS2] inode-diet: Eliminate i_blksize from the inode structure X-Git-Tag: v2.6.19-rc1~32^2~13 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=825f9075d74028d11d7f5932f04e1b5db3022b51;p=linux-2.6-omap-h63xx.git [GFS2] inode-diet: Eliminate i_blksize from the inode structure This eliminates the i_blksize field from struct inode. Filesystems that want to provide a per-inode st_blksize can do so by providing their own getattr routine instead of using the generic_fillattr() function. Note that some filesystems were providing pretty much random (and incorrect) values for i_blksize. Signed-off-by: "Theodore Ts'o" Cc: Steven Whitehouse Signed-off-by: Andrew Morton --- diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index 784d145058c..57a4c8b6858 100644 --- a/fs/gfs2/inode.c +++ b/fs/gfs2/inode.c @@ -72,7 +72,6 @@ void gfs2_inode_attr_in(struct gfs2_inode *ip) inode->i_atime.tv_nsec = 0; inode->i_mtime.tv_nsec = 0; inode->i_ctime.tv_nsec = 0; - inode->i_blksize = PAGE_SIZE; inode->i_blocks = di->di_blocks << (GFS2_SB(inode)->sd_sb.sb_bsize_shift - GFS2_BASIC_BLOCK_SHIFT);