Commit 038428fc authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds

befs: replace typedef befs_sb_info by structure

See Documenation/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 09ad0eae
...@@ -28,7 +28,7 @@ struct befs_mount_options { ...@@ -28,7 +28,7 @@ struct befs_mount_options {
char *iocharset; char *iocharset;
}; };
typedef struct befs_sb_info { struct befs_sb_info {
u32 magic1; u32 magic1;
u32 block_size; u32 block_size;
u32 block_shift; u32 block_shift;
...@@ -54,8 +54,7 @@ typedef struct befs_sb_info { ...@@ -54,8 +54,7 @@ typedef struct befs_sb_info {
struct befs_mount_options mount_opts; struct befs_mount_options mount_opts;
struct nls_table *nls; struct nls_table *nls;
};
} befs_sb_info;
typedef struct befs_inode_info { typedef struct befs_inode_info {
u32 i_flags; u32 i_flags;
...@@ -105,10 +104,10 @@ void befs_dump_index_node(const struct super_block *sb, befs_btree_nodehead *); ...@@ -105,10 +104,10 @@ void befs_dump_index_node(const struct super_block *sb, befs_btree_nodehead *);
/* Gets a pointer to the private portion of the super_block /* Gets a pointer to the private portion of the super_block
* structure from the public part * structure from the public part
*/ */
static inline befs_sb_info * static inline struct befs_sb_info *
BEFS_SB(const struct super_block *super) BEFS_SB(const struct super_block *super)
{ {
return (befs_sb_info *) super->s_fs_info; return (struct befs_sb_info *) super->s_fs_info;
} }
static inline befs_inode_info * static inline befs_inode_info *
......
...@@ -168,7 +168,7 @@ befs_count_blocks(struct super_block * sb, befs_data_stream * ds) ...@@ -168,7 +168,7 @@ befs_count_blocks(struct super_block * sb, befs_data_stream * ds)
befs_blocknr_t blocks; befs_blocknr_t blocks;
befs_blocknr_t datablocks; /* File data blocks */ befs_blocknr_t datablocks; /* File data blocks */
befs_blocknr_t metablocks; /* FS metadata blocks */ befs_blocknr_t metablocks; /* FS metadata blocks */
befs_sb_info *befs_sb = BEFS_SB(sb); struct befs_sb_info *befs_sb = BEFS_SB(sb);
befs_debug(sb, "---> %s", __func__); befs_debug(sb, "---> %s", __func__);
...@@ -428,7 +428,7 @@ befs_find_brun_dblindirect(struct super_block *sb, ...@@ -428,7 +428,7 @@ befs_find_brun_dblindirect(struct super_block *sb,
struct buffer_head *indir_block; struct buffer_head *indir_block;
befs_block_run indir_run; befs_block_run indir_run;
befs_disk_inode_addr *iaddr_array = NULL; befs_disk_inode_addr *iaddr_array = NULL;
befs_sb_info *befs_sb = BEFS_SB(sb); struct befs_sb_info *befs_sb = BEFS_SB(sb);
befs_blocknr_t indir_start_blk = befs_blocknr_t indir_start_blk =
data->max_indirect_range >> befs_sb->block_shift; data->max_indirect_range >> befs_sb->block_shift;
......
...@@ -28,7 +28,7 @@ befs_bread_iaddr(struct super_block *sb, befs_inode_addr iaddr) ...@@ -28,7 +28,7 @@ befs_bread_iaddr(struct super_block *sb, befs_inode_addr iaddr)
{ {
struct buffer_head *bh = NULL; struct buffer_head *bh = NULL;
befs_blocknr_t block = 0; befs_blocknr_t block = 0;
befs_sb_info *befs_sb = BEFS_SB(sb); struct befs_sb_info *befs_sb = BEFS_SB(sb);
befs_debug(sb, "---> Enter %s " befs_debug(sb, "---> Enter %s "
"[%u, %hu, %hu]", __func__, iaddr.allocation_group, "[%u, %hu, %hu]", __func__, iaddr.allocation_group,
......
...@@ -304,8 +304,7 @@ static struct inode *befs_iget(struct super_block *sb, unsigned long ino) ...@@ -304,8 +304,7 @@ static struct inode *befs_iget(struct super_block *sb, unsigned long ino)
{ {
struct buffer_head *bh = NULL; struct buffer_head *bh = NULL;
befs_inode *raw_inode = NULL; befs_inode *raw_inode = NULL;
struct befs_sb_info *befs_sb = BEFS_SB(sb);
befs_sb_info *befs_sb = BEFS_SB(sb);
befs_inode_info *befs_ino = NULL; befs_inode_info *befs_ino = NULL;
struct inode *inode; struct inode *inode;
long ret = -EIO; long ret = -EIO;
...@@ -769,7 +768,7 @@ static int ...@@ -769,7 +768,7 @@ static int
befs_fill_super(struct super_block *sb, void *data, int silent) befs_fill_super(struct super_block *sb, void *data, int silent)
{ {
struct buffer_head *bh; struct buffer_head *bh;
befs_sb_info *befs_sb; struct befs_sb_info *befs_sb;
befs_super_block *disk_sb; befs_super_block *disk_sb;
struct inode *root; struct inode *root;
long ret = -EINVAL; long ret = -EINVAL;
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
int int
befs_load_sb(struct super_block *sb, befs_super_block * disk_sb) befs_load_sb(struct super_block *sb, befs_super_block * disk_sb)
{ {
befs_sb_info *befs_sb = BEFS_SB(sb); struct befs_sb_info *befs_sb = BEFS_SB(sb);
/* Check the byte order of the filesystem */ /* Check the byte order of the filesystem */
if (disk_sb->fs_byte_order == BEFS_BYTEORDER_NATIVE_LE) if (disk_sb->fs_byte_order == BEFS_BYTEORDER_NATIVE_LE)
...@@ -59,7 +59,7 @@ befs_load_sb(struct super_block *sb, befs_super_block * disk_sb) ...@@ -59,7 +59,7 @@ befs_load_sb(struct super_block *sb, befs_super_block * disk_sb)
int int
befs_check_sb(struct super_block *sb) befs_check_sb(struct super_block *sb)
{ {
befs_sb_info *befs_sb = BEFS_SB(sb); struct befs_sb_info *befs_sb = BEFS_SB(sb);
/* Check magic headers of super block */ /* Check magic headers of super block */
if ((befs_sb->magic1 != BEFS_SUPER_MAGIC1) if ((befs_sb->magic1 != BEFS_SUPER_MAGIC1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment