aboutsummaryrefslogtreecommitdiffstats
path: root/fs/befs/linuxvfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/befs/linuxvfs.c')
-rw-r--r--fs/befs/linuxvfs.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c
index 2d365cb8eec6..68ebd10f345d 100644
--- a/fs/befs/linuxvfs.c
+++ b/fs/befs/linuxvfs.c
@@ -64,7 +64,7 @@ static const struct super_operations befs_sops = {
64/* slab cache for befs_inode_info objects */ 64/* slab cache for befs_inode_info objects */
65static kmem_cache_t *befs_inode_cachep; 65static kmem_cache_t *befs_inode_cachep;
66 66
67static struct file_operations befs_dir_operations = { 67static const struct file_operations befs_dir_operations = {
68 .read = generic_read_dir, 68 .read = generic_read_dir,
69 .readdir = befs_readdir, 69 .readdir = befs_readdir,
70}; 70};
@@ -427,7 +427,8 @@ befs_init_inodecache(void)
427{ 427{
428 befs_inode_cachep = kmem_cache_create("befs_inode_cache", 428 befs_inode_cachep = kmem_cache_create("befs_inode_cache",
429 sizeof (struct befs_inode_info), 429 sizeof (struct befs_inode_info),
430 0, SLAB_RECLAIM_ACCOUNT, 430 0, (SLAB_RECLAIM_ACCOUNT|
431 SLAB_MEM_SPREAD),
431 init_once, NULL); 432 init_once, NULL);
432 if (befs_inode_cachep == NULL) { 433 if (befs_inode_cachep == NULL) {
433 printk(KERN_ERR "befs_init_inodecache: " 434 printk(KERN_ERR "befs_init_inodecache: "
@@ -561,7 +562,7 @@ befs_utf2nls(struct super_block *sb, const char *in,
561 * @sb: Superblock 562 * @sb: Superblock
562 * @src: Input string buffer in NLS format 563 * @src: Input string buffer in NLS format
563 * @srclen: Length of input string in bytes 564 * @srclen: Length of input string in bytes
564 * @dest: The output string in UTF8 format 565 * @dest: The output string in UTF-8 format
565 * @destlen: Length of the output buffer 566 * @destlen: Length of the output buffer
566 * 567 *
567 * Converts input string @src, which is in the format of the loaded NLS map, 568 * Converts input string @src, which is in the format of the loaded NLS map,