diff options
Diffstat (limited to 'fs/fat/inode.c')
-rw-r--r-- | fs/fat/inode.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/fs/fat/inode.c b/fs/fat/inode.c index e7f4aa7fc686..c1ce284f8a94 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c | |||
@@ -101,11 +101,11 @@ static int __fat_get_blocks(struct inode *inode, sector_t iblock, | |||
101 | } | 101 | } |
102 | 102 | ||
103 | static int fat_get_blocks(struct inode *inode, sector_t iblock, | 103 | static int fat_get_blocks(struct inode *inode, sector_t iblock, |
104 | unsigned long max_blocks, | ||
105 | struct buffer_head *bh_result, int create) | 104 | struct buffer_head *bh_result, int create) |
106 | { | 105 | { |
107 | struct super_block *sb = inode->i_sb; | 106 | struct super_block *sb = inode->i_sb; |
108 | int err; | 107 | int err; |
108 | unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits; | ||
109 | 109 | ||
110 | err = __fat_get_blocks(inode, iblock, &max_blocks, bh_result, create); | 110 | err = __fat_get_blocks(inode, iblock, &max_blocks, bh_result, create); |
111 | if (err) | 111 | if (err) |
@@ -518,7 +518,8 @@ static int __init fat_init_inodecache(void) | |||
518 | { | 518 | { |
519 | fat_inode_cachep = kmem_cache_create("fat_inode_cache", | 519 | fat_inode_cachep = kmem_cache_create("fat_inode_cache", |
520 | sizeof(struct msdos_inode_info), | 520 | sizeof(struct msdos_inode_info), |
521 | 0, SLAB_RECLAIM_ACCOUNT, | 521 | 0, (SLAB_RECLAIM_ACCOUNT| |
522 | SLAB_MEM_SPREAD), | ||
522 | init_once, NULL); | 523 | init_once, NULL); |
523 | if (fat_inode_cachep == NULL) | 524 | if (fat_inode_cachep == NULL) |
524 | return -ENOMEM; | 525 | return -ENOMEM; |
@@ -1101,7 +1102,7 @@ static int parse_options(char *options, int is_vfat, int silent, int *debug, | |||
1101 | return -EINVAL; | 1102 | return -EINVAL; |
1102 | } | 1103 | } |
1103 | } | 1104 | } |
1104 | /* UTF8 doesn't provide FAT semantics */ | 1105 | /* UTF-8 doesn't provide FAT semantics */ |
1105 | if (!strcmp(opts->iocharset, "utf8")) { | 1106 | if (!strcmp(opts->iocharset, "utf8")) { |
1106 | printk(KERN_ERR "FAT: utf8 is not a recommended IO charset" | 1107 | printk(KERN_ERR "FAT: utf8 is not a recommended IO charset" |
1107 | " for FAT filesystems, filesystem will be case sensitive!\n"); | 1108 | " for FAT filesystems, filesystem will be case sensitive!\n"); |
@@ -1434,9 +1435,6 @@ out_fail: | |||
1434 | 1435 | ||
1435 | EXPORT_SYMBOL_GPL(fat_fill_super); | 1436 | EXPORT_SYMBOL_GPL(fat_fill_super); |
1436 | 1437 | ||
1437 | int __init fat_cache_init(void); | ||
1438 | void fat_cache_destroy(void); | ||
1439 | |||
1440 | static int __init init_fat_fs(void) | 1438 | static int __init init_fat_fs(void) |
1441 | { | 1439 | { |
1442 | int err; | 1440 | int err; |