[PATCH 2.4] befs fixes

From: O.Sezer
Date: Fri Aug 13 2004 - 14:07:37 EST


various befs fixes. one is unused xattr code.
the other is unreached code fixed the same way in 2.6.

Özkan Sezer

--- 27rc5~/fs/befs/linuxvfs.c 2003-06-13 17:51:37.000000000 +0300
+++ 27rc5/fs/befs/linuxvfs.c 2004-08-07 14:09:39.000000000 +0300
@@ -584,11 +577,11 @@
}
}
result[o] = '\0';
+ *out_len = o;

befs_debug(sb, "<--- utf2nls()");

return o;
- *out_len = o;

conv_err:
befs_error(sb, "Name using charecter set %s contains a charecter that "

--- 27rc5~/fs/befs/linuxvfs.c 2003-06-13 17:51:37.000000000 +0300
+++ 27rc5/fs/befs/linuxvfs.c 2004-08-07 14:09:39.000000000 +0300
@@ -55,13 +55,6 @@
static int befs_statfs(struct super_block *, struct statfs *);
static int parse_options(char *, befs_mount_options *);

-static ssize_t befs_listxattr(struct dentry *dentry, char *buffer, size_t size);
-static ssize_t befs_getxattr(struct dentry *dentry, const char *name,
- void *buffer, size_t size);
-static int befs_setxattr(struct dentry *dentry, const char *name, void *value,
- size_t size, int flags);
-static int befs_removexattr(struct dentry *dentry, const char *name);
-
/* slab cache for befs_inode_info objects */
static kmem_cache_t *befs_inode_cachep;

@@ -675,35 +668,6 @@
return -EILSEQ;
}

-/****Xattr****/
-
-static ssize_t
-befs_listxattr(struct dentry *dentry, char *buffer, size_t size)
-{
- printk(KERN_ERR "befs_listxattr called\n");
- return 0;
-}
-
-static ssize_t
-befs_getxattr(struct dentry *dentry, const char *name,
- void *buffer, size_t size)
-{
- return 0;
-}
-
-static int
-befs_setxattr(struct dentry *dentry, const char *name,
- void *value, size_t size, int flags)
-{
- return 0;
-}
-
-static int
-befs_removexattr(struct dentry *dentry, const char *name)
-{
- return 0;
-}
-
/****Superblock****/

static int