aboutsummaryrefslogtreecommitdiffstats
path: root/fs/befs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/befs')
-rw-r--r--fs/befs/datastream.c2
-rw-r--r--fs/befs/linuxvfs.c7
2 files changed, 5 insertions, 4 deletions
diff --git a/fs/befs/datastream.c b/fs/befs/datastream.c
index 785f6b2d5d10..b7d6b920f65f 100644
--- a/fs/befs/datastream.c
+++ b/fs/befs/datastream.c
@@ -118,7 +118,7 @@ befs_fblock2brun(struct super_block *sb, befs_data_stream * data,
118 * befs_read_lsmylink - read long symlink from datastream. 118 * befs_read_lsmylink - read long symlink from datastream.
119 * @sb: Filesystem superblock 119 * @sb: Filesystem superblock
120 * @ds: Datastrem to read from 120 * @ds: Datastrem to read from
121 * @buf: Buffer in wich to place long symlink data 121 * @buf: Buffer in which to place long symlink data
122 * @len: Length of the long symlink in bytes 122 * @len: Length of the long symlink in bytes
123 * 123 *
124 * Returns the number of bytes read 124 * Returns the number of bytes read
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,