diff options
author | Fabian Frederick <fabf@skynet.be> | 2015-04-16 15:46:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-17 09:04:03 -0400 |
commit | 09ad0eae5ed0f354df892b1cfb868338dc578c5c (patch) | |
tree | b4b26c0fd0221c2880c81fe968f688675f810787 | |
parent | a737e835e5769ef22897179ed7f82b1fc50bfa58 (diff) |
befs: replace typedef befs_mount_options by structure
See Documentation/CodingStyle
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | fs/befs/befs.h | 6 | ||||
-rw-r--r-- | fs/befs/linuxvfs.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/fs/befs/befs.h b/fs/befs/befs.h index 3a7813ab8c95..d4751affb222 100644 --- a/fs/befs/befs.h +++ b/fs/befs/befs.h | |||
@@ -19,14 +19,14 @@ typedef u64 befs_blocknr_t; | |||
19 | * BeFS in memory structures | 19 | * BeFS in memory structures |
20 | */ | 20 | */ |
21 | 21 | ||
22 | typedef struct befs_mount_options { | 22 | struct befs_mount_options { |
23 | kgid_t gid; | 23 | kgid_t gid; |
24 | kuid_t uid; | 24 | kuid_t uid; |
25 | int use_gid; | 25 | int use_gid; |
26 | int use_uid; | 26 | int use_uid; |
27 | int debug; | 27 | int debug; |
28 | char *iocharset; | 28 | char *iocharset; |
29 | } befs_mount_options; | 29 | }; |
30 | 30 | ||
31 | typedef struct befs_sb_info { | 31 | typedef struct befs_sb_info { |
32 | u32 magic1; | 32 | u32 magic1; |
@@ -52,7 +52,7 @@ typedef struct befs_sb_info { | |||
52 | befs_inode_addr indices; | 52 | befs_inode_addr indices; |
53 | u32 magic3; | 53 | u32 magic3; |
54 | 54 | ||
55 | befs_mount_options mount_opts; | 55 | struct befs_mount_options mount_opts; |
56 | struct nls_table *nls; | 56 | struct nls_table *nls; |
57 | 57 | ||
58 | } befs_sb_info; | 58 | } befs_sb_info; |
diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index e089f1985fca..126fb6ce9899 100644 --- a/fs/befs/linuxvfs.c +++ b/fs/befs/linuxvfs.c | |||
@@ -51,7 +51,7 @@ static int befs_nls2utf(struct super_block *sb, const char *in, int in_len, | |||
51 | static void befs_put_super(struct super_block *); | 51 | static void befs_put_super(struct super_block *); |
52 | static int befs_remount(struct super_block *, int *, char *); | 52 | static int befs_remount(struct super_block *, int *, char *); |
53 | static int befs_statfs(struct dentry *, struct kstatfs *); | 53 | static int befs_statfs(struct dentry *, struct kstatfs *); |
54 | static int parse_options(char *, befs_mount_options *); | 54 | static int parse_options(char *, struct befs_mount_options *); |
55 | 55 | ||
56 | static const struct super_operations befs_sops = { | 56 | static const struct super_operations befs_sops = { |
57 | .alloc_inode = befs_alloc_inode, /* allocate a new inode */ | 57 | .alloc_inode = befs_alloc_inode, /* allocate a new inode */ |
@@ -669,7 +669,7 @@ static const match_table_t befs_tokens = { | |||
669 | }; | 669 | }; |
670 | 670 | ||
671 | static int | 671 | static int |
672 | parse_options(char *options, befs_mount_options * opts) | 672 | parse_options(char *options, struct befs_mount_options *opts) |
673 | { | 673 | { |
674 | char *p; | 674 | char *p; |
675 | substring_t args[MAX_OPT_ARGS]; | 675 | substring_t args[MAX_OPT_ARGS]; |