[PATCH] 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. [bunk@stusta.de: cleanup] [akpm@osdl.org: generic_fillattr() fix] Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
577c4eb09d
commit
ba52de123d
@ -154,7 +154,6 @@ struct inode *hfs_new_inode(struct inode *dir, struct qstr *name, int mode)
|
||||
inode->i_gid = current->fsgid;
|
||||
inode->i_nlink = 1;
|
||||
inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC;
|
||||
inode->i_blksize = HFS_SB(sb)->alloc_blksz;
|
||||
HFS_I(inode)->flags = 0;
|
||||
HFS_I(inode)->rsrc_inode = NULL;
|
||||
HFS_I(inode)->fs_blocks = 0;
|
||||
@ -284,7 +283,6 @@ static int hfs_read_inode(struct inode *inode, void *data)
|
||||
inode->i_uid = hsb->s_uid;
|
||||
inode->i_gid = hsb->s_gid;
|
||||
inode->i_nlink = 1;
|
||||
inode->i_blksize = HFS_SB(inode->i_sb)->alloc_blksz;
|
||||
|
||||
if (idata->key)
|
||||
HFS_I(inode)->cat_key = *idata->key;
|
||||
|
Reference in New Issue
Block a user