aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2006-09-27 04:50:32 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-09-28 08:32:51 -0400
commit825f9075d74028d11d7f5932f04e1b5db3022b51 (patch)
treecbb7ce19f89410a770d82cd3142a55f5f8a30249 /fs
parentbba9dfd83587017de1c55a94c077983e0dfa0251 (diff)
[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" <tytso@mit.edu> Cc: Steven Whitehouse <swhiteho@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/gfs2/inode.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
index 784d145058cb..57a4c8b68587 100644
--- a/fs/gfs2/inode.c
+++ b/fs/gfs2/inode.c
@@ -72,7 +72,6 @@ void gfs2_inode_attr_in(struct gfs2_inode *ip)
72 inode->i_atime.tv_nsec = 0; 72 inode->i_atime.tv_nsec = 0;
73 inode->i_mtime.tv_nsec = 0; 73 inode->i_mtime.tv_nsec = 0;
74 inode->i_ctime.tv_nsec = 0; 74 inode->i_ctime.tv_nsec = 0;
75 inode->i_blksize = PAGE_SIZE;
76 inode->i_blocks = di->di_blocks << 75 inode->i_blocks = di->di_blocks <<
77 (GFS2_SB(inode)->sd_sb.sb_bsize_shift - GFS2_BASIC_BLOCK_SHIFT); 76 (GFS2_SB(inode)->sd_sb.sb_bsize_shift - GFS2_BASIC_BLOCK_SHIFT);
78 77