diff options
author | Christoph Hellwig <hch@lst.de> | 2016-06-01 03:18:21 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2016-06-01 03:21:26 -0400 |
commit | f2bf2c70488145c961306b873c75147048db743d (patch) | |
tree | 031b7be24ada96322bc002211e2bb10a7025d3c6 | |
parent | 8985f53ee2eaa503c22e2fc90e81b1fb8e547ab4 (diff) |
freevxfs: avoid the need for forward declaring the super operations
Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r-- | fs/freevxfs/vxfs_super.c | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/fs/freevxfs/vxfs_super.c b/fs/freevxfs/vxfs_super.c index daf58a9fae70..40125cc825f2 100644 --- a/fs/freevxfs/vxfs_super.c +++ b/fs/freevxfs/vxfs_super.c | |||
@@ -52,19 +52,6 @@ MODULE_AUTHOR("Christoph Hellwig"); | |||
52 | MODULE_DESCRIPTION("Veritas Filesystem (VxFS) driver"); | 52 | MODULE_DESCRIPTION("Veritas Filesystem (VxFS) driver"); |
53 | MODULE_LICENSE("Dual BSD/GPL"); | 53 | MODULE_LICENSE("Dual BSD/GPL"); |
54 | 54 | ||
55 | |||
56 | |||
57 | static void vxfs_put_super(struct super_block *); | ||
58 | static int vxfs_statfs(struct dentry *, struct kstatfs *); | ||
59 | static int vxfs_remount(struct super_block *, int *, char *); | ||
60 | |||
61 | static const struct super_operations vxfs_super_ops = { | ||
62 | .evict_inode = vxfs_evict_inode, | ||
63 | .put_super = vxfs_put_super, | ||
64 | .statfs = vxfs_statfs, | ||
65 | .remount_fs = vxfs_remount, | ||
66 | }; | ||
67 | |||
68 | /** | 55 | /** |
69 | * vxfs_put_super - free superblock resources | 56 | * vxfs_put_super - free superblock resources |
70 | * @sbp: VFS superblock. | 57 | * @sbp: VFS superblock. |
@@ -130,6 +117,12 @@ static int vxfs_remount(struct super_block *sb, int *flags, char *data) | |||
130 | return 0; | 117 | return 0; |
131 | } | 118 | } |
132 | 119 | ||
120 | static const struct super_operations vxfs_super_ops = { | ||
121 | .evict_inode = vxfs_evict_inode, | ||
122 | .put_super = vxfs_put_super, | ||
123 | .statfs = vxfs_statfs, | ||
124 | .remount_fs = vxfs_remount, | ||
125 | }; | ||
133 | 126 | ||
134 | static int vxfs_try_sb_magic(struct super_block *sbp, int silent, | 127 | static int vxfs_try_sb_magic(struct super_block *sbp, int silent, |
135 | unsigned blk, __fs32 magic) | 128 | unsigned blk, __fs32 magic) |