summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBrian Gerst <bgerst@didntduck.org>2002-03-11 20:51:20 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2002-03-11 20:51:20 -0800
commitddd7dce99da550c4be77d474973155697434e8ee (patch)
tree64e49f1a08b404fb7b2147cb54241f06cc2268fd /include
parentd7d3ae66500056c821c1e183b64bc388348f8e2d (diff)
[PATCH] struct superblock cleanup - minixfs
Start of cleaning up the union of filesystem-specific structures in struct super_block. The goal is to remove dependence on filesystem headers in fs.h. This patch abstracts the access to the minix_sb_info structure through the function minix_sb().
Diffstat (limited to 'include')
-rw-r--r--include/linux/minix_fs.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/minix_fs.h b/include/linux/minix_fs.h
index c767d1ff8752..5953da6a02ac 100644
--- a/include/linux/minix_fs.h
+++ b/include/linux/minix_fs.h
@@ -32,7 +32,7 @@
#define MINIX_V1 0x0001 /* original minix fs */
#define MINIX_V2 0x0002 /* minix V2 fs */
-#define INODE_VERSION(inode) inode->i_sb->u.minix_sb.s_version
+#define INODE_VERSION(inode) minix_sb(inode->i_sb)->s_version
/*
* This is the original minix inode layout on disk.
@@ -90,6 +90,7 @@ struct minix_dir_entry {
#ifdef __KERNEL__
#include <linux/minix_fs_i.h>
+#include <linux/minix_fs_sb.h>
/*
* change the define below to 0 if you want names > info->s_namelen chars to be
@@ -131,6 +132,11 @@ extern struct file_operations minix_file_operations;
extern struct file_operations minix_dir_operations;
extern struct dentry_operations minix_dentry_operations;
+static inline struct minix_sb_info *minix_sb(struct super_block *sb)
+{
+ return &sb->u.minix_sb;
+}
+
static inline struct minix_inode_info *minix_i(struct inode *inode)
{
return list_entry(inode, struct minix_inode_info, vfs_inode);