fat: i_blocks warning fix
blkcnt_t type depends on CONFIG_LSF. Use unsigned long long always for printk(). But lazy to type it, so add "llu" and use it. Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
9ca59f4c3d
commit
c3302931db
@@ -124,8 +124,9 @@ int fat_chain_add(struct inode *inode, int new_dclus, int nr_cluster)
|
||||
mark_inode_dirty(inode);
|
||||
}
|
||||
if (new_fclus != (inode->i_blocks >> (sbi->cluster_bits - 9))) {
|
||||
fat_fs_panic(sb, "clusters badly computed (%d != %lu)",
|
||||
new_fclus, inode->i_blocks >> (sbi->cluster_bits - 9));
|
||||
fat_fs_panic(sb, "clusters badly computed (%d != %llu)",
|
||||
new_fclus,
|
||||
(llu)(inode->i_blocks >> (sbi->cluster_bits - 9)));
|
||||
fat_cache_inval_inode(inode);
|
||||
}
|
||||
inode->i_blocks += nr_cluster << (sbi->cluster_bits - 9);
|
||||
|
Reference in New Issue
Block a user