mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
[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. [[email protected]: cleanup] [[email protected]: generic_fillattr() fix] Signed-off-by: "Theodore Ts'o" <[email protected]> Signed-off-by: Adrian Bunk <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
577c4eb09d
commit
ba52de123d
80 changed files with 21 additions and 125 deletions
|
|
@ -370,8 +370,6 @@ static int fat_fill_inode(struct inode *inode, struct msdos_dir_entry *de)
|
|||
inode->i_flags |= S_IMMUTABLE;
|
||||
}
|
||||
MSDOS_I(inode)->i_attrs = de->attr & ATTR_UNUSED;
|
||||
/* this is as close to the truth as we can get ... */
|
||||
inode->i_blksize = sbi->cluster_size;
|
||||
inode->i_blocks = ((inode->i_size + (sbi->cluster_size - 1))
|
||||
& ~((loff_t)sbi->cluster_size - 1)) >> 9;
|
||||
inode->i_mtime.tv_sec =
|
||||
|
|
@ -1131,7 +1129,6 @@ static int fat_read_root(struct inode *inode)
|
|||
MSDOS_I(inode)->i_start = 0;
|
||||
inode->i_size = sbi->dir_entries * sizeof(struct msdos_dir_entry);
|
||||
}
|
||||
inode->i_blksize = sbi->cluster_size;
|
||||
inode->i_blocks = ((inode->i_size + (sbi->cluster_size - 1))
|
||||
& ~((loff_t)sbi->cluster_size - 1)) >> 9;
|
||||
MSDOS_I(inode)->i_logstart = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue