aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fat/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fat/inode.c')
-rw-r--r--fs/fat/inode.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/fat/inode.c b/fs/fat/inode.c
index e1035a590664..ab96ae823753 100644
--- a/fs/fat/inode.c
+++ b/fs/fat/inode.c
@@ -370,8 +370,6 @@ static int fat_fill_inode(struct inode *inode, struct msdos_dir_entry *de)
370 inode->i_flags |= S_IMMUTABLE; 370 inode->i_flags |= S_IMMUTABLE;
371 } 371 }
372 MSDOS_I(inode)->i_attrs = de->attr & ATTR_UNUSED; 372 MSDOS_I(inode)->i_attrs = de->attr & ATTR_UNUSED;
373 /* this is as close to the truth as we can get ... */
374 inode->i_blksize = sbi->cluster_size;
375 inode->i_blocks = ((inode->i_size + (sbi->cluster_size - 1)) 373 inode->i_blocks = ((inode->i_size + (sbi->cluster_size - 1))
376 & ~((loff_t)sbi->cluster_size - 1)) >> 9; 374 & ~((loff_t)sbi->cluster_size - 1)) >> 9;
377 inode->i_mtime.tv_sec = 375 inode->i_mtime.tv_sec =
@@ -1131,7 +1129,6 @@ static int fat_read_root(struct inode *inode)
1131 MSDOS_I(inode)->i_start = 0; 1129 MSDOS_I(inode)->i_start = 0;
1132 inode->i_size = sbi->dir_entries * sizeof(struct msdos_dir_entry); 1130 inode->i_size = sbi->dir_entries * sizeof(struct msdos_dir_entry);
1133 } 1131 }
1134 inode->i_blksize = sbi->cluster_size;
1135 inode->i_blocks = ((inode->i_size + (sbi->cluster_size - 1)) 1132 inode->i_blocks = ((inode->i_size + (sbi->cluster_size - 1))
1136 & ~((loff_t)sbi->cluster_size - 1)) >> 9; 1133 & ~((loff_t)sbi->cluster_size - 1)) >> 9;
1137 MSDOS_I(inode)->i_logstart = 0; 1134 MSDOS_I(inode)->i_logstart = 0;