Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 09ad0eae authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds
Browse files

befs: replace typedef befs_mount_options by structure



See Documentation/CodingStyle

Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a737e835
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -19,14 +19,14 @@ typedef u64 befs_blocknr_t;
 * BeFS in memory structures
 * BeFS in memory structures
 */
 */


typedef struct befs_mount_options {
struct befs_mount_options {
	kgid_t gid;
	kgid_t gid;
	kuid_t uid;
	kuid_t uid;
	int use_gid;
	int use_gid;
	int use_uid;
	int use_uid;
	int debug;
	int debug;
	char *iocharset;
	char *iocharset;
} befs_mount_options;
};


typedef struct befs_sb_info {
typedef struct befs_sb_info {
	u32 magic1;
	u32 magic1;
@@ -52,7 +52,7 @@ typedef struct befs_sb_info {
	befs_inode_addr indices;
	befs_inode_addr indices;
	u32 magic3;
	u32 magic3;


	befs_mount_options mount_opts;
	struct befs_mount_options mount_opts;
	struct nls_table *nls;
	struct nls_table *nls;


} befs_sb_info;
} befs_sb_info;
+2 −2
Original line number Original line Diff line number Diff line
@@ -51,7 +51,7 @@ static int befs_nls2utf(struct super_block *sb, const char *in, int in_len,
static void befs_put_super(struct super_block *);
static void befs_put_super(struct super_block *);
static int befs_remount(struct super_block *, int *, char *);
static int befs_remount(struct super_block *, int *, char *);
static int befs_statfs(struct dentry *, struct kstatfs *);
static int befs_statfs(struct dentry *, struct kstatfs *);
static int parse_options(char *, befs_mount_options *);
static int parse_options(char *, struct befs_mount_options *);


static const struct super_operations befs_sops = {
static const struct super_operations befs_sops = {
	.alloc_inode	= befs_alloc_inode,	/* allocate a new inode */
	.alloc_inode	= befs_alloc_inode,	/* allocate a new inode */
@@ -669,7 +669,7 @@ static const match_table_t befs_tokens = {
};
};


static int
static int
parse_options(char *options, befs_mount_options * opts)
parse_options(char *options, struct befs_mount_options *opts)
{
{
	char *p;
	char *p;
	substring_t args[MAX_OPT_ARGS];
	substring_t args[MAX_OPT_ARGS];