diff options
author | Fabian Frederick <fabf@skynet.be> | 2015-04-16 15:46:23 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-17 09:04:03 -0400 |
commit | f8ccad2164d406e60c0fa91206258f608fdb0148 (patch) | |
tree | 61dda6be1e6cd5882e74e02904e943f2c5e8585f /fs | |
parent | 038428fcf7f05e5da46de617831a8230e1a2551d (diff) |
befs: replace typedef befs_inode_info 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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/befs/befs.h | 7 | ||||
-rw-r--r-- | fs/befs/linuxvfs.c | 7 |
2 files changed, 7 insertions, 7 deletions
diff --git a/fs/befs/befs.h b/fs/befs/befs.h index 11461abfda11..1fead8d56a98 100644 --- a/fs/befs/befs.h +++ b/fs/befs/befs.h | |||
@@ -56,7 +56,7 @@ struct befs_sb_info { | |||
56 | struct nls_table *nls; | 56 | struct nls_table *nls; |
57 | }; | 57 | }; |
58 | 58 | ||
59 | typedef struct befs_inode_info { | 59 | struct befs_inode_info { |
60 | u32 i_flags; | 60 | u32 i_flags; |
61 | u32 i_type; | 61 | u32 i_type; |
62 | 62 | ||
@@ -70,8 +70,7 @@ typedef struct befs_inode_info { | |||
70 | } i_data; | 70 | } i_data; |
71 | 71 | ||
72 | struct inode vfs_inode; | 72 | struct inode vfs_inode; |
73 | 73 | }; | |
74 | } befs_inode_info; | ||
75 | 74 | ||
76 | enum befs_err { | 75 | enum befs_err { |
77 | BEFS_OK, | 76 | BEFS_OK, |
@@ -110,7 +109,7 @@ BEFS_SB(const struct super_block *super) | |||
110 | return (struct befs_sb_info *) super->s_fs_info; | 109 | return (struct befs_sb_info *) super->s_fs_info; |
111 | } | 110 | } |
112 | 111 | ||
113 | static inline befs_inode_info * | 112 | static inline struct befs_inode_info * |
114 | BEFS_I(const struct inode *inode) | 113 | BEFS_I(const struct inode *inode) |
115 | { | 114 | { |
116 | return list_entry(inode, struct befs_inode_info, vfs_inode); | 115 | return list_entry(inode, struct befs_inode_info, vfs_inode); |
diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index 9978db4aeb87..16e0a48bfccd 100644 --- a/fs/befs/linuxvfs.c +++ b/fs/befs/linuxvfs.c | |||
@@ -305,7 +305,7 @@ static struct inode *befs_iget(struct super_block *sb, unsigned long ino) | |||
305 | struct buffer_head *bh = NULL; | 305 | struct buffer_head *bh = NULL; |
306 | befs_inode *raw_inode = NULL; | 306 | befs_inode *raw_inode = NULL; |
307 | struct befs_sb_info *befs_sb = BEFS_SB(sb); | 307 | struct befs_sb_info *befs_sb = BEFS_SB(sb); |
308 | befs_inode_info *befs_ino = NULL; | 308 | struct befs_inode_info *befs_ino = NULL; |
309 | struct inode *inode; | 309 | struct inode *inode; |
310 | long ret = -EIO; | 310 | long ret = -EIO; |
311 | 311 | ||
@@ -471,7 +471,7 @@ static void * | |||
471 | befs_follow_link(struct dentry *dentry, struct nameidata *nd) | 471 | befs_follow_link(struct dentry *dentry, struct nameidata *nd) |
472 | { | 472 | { |
473 | struct super_block *sb = dentry->d_sb; | 473 | struct super_block *sb = dentry->d_sb; |
474 | befs_inode_info *befs_ino = BEFS_I(dentry->d_inode); | 474 | struct befs_inode_info *befs_ino = BEFS_I(dentry->d_inode); |
475 | befs_data_stream *data = &befs_ino->i_data.ds; | 475 | befs_data_stream *data = &befs_ino->i_data.ds; |
476 | befs_off_t len = data->size; | 476 | befs_off_t len = data->size; |
477 | char *link; | 477 | char *link; |
@@ -501,7 +501,8 @@ befs_follow_link(struct dentry *dentry, struct nameidata *nd) | |||
501 | static void * | 501 | static void * |
502 | befs_fast_follow_link(struct dentry *dentry, struct nameidata *nd) | 502 | befs_fast_follow_link(struct dentry *dentry, struct nameidata *nd) |
503 | { | 503 | { |
504 | befs_inode_info *befs_ino = BEFS_I(dentry->d_inode); | 504 | struct befs_inode_info *befs_ino = BEFS_I(dentry->d_inode); |
505 | |||
505 | nd_set_link(nd, befs_ino->i_data.symlink); | 506 | nd_set_link(nd, befs_ino->i_data.symlink); |
506 | return NULL; | 507 | return NULL; |
507 | } | 508 | } |