Skip to content

Commit

Permalink
[GFS2] inode-diet: Eliminate i_blksize from the inode structure
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
tytso authored and swhiteho committed Sep 28, 2006
1 parent bba9dfd commit 825f907
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/gfs2/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 825f907

Please sign in to comment.