diff options
| author | Brian Gerst <bgerst@didntduck.org> | 2002-03-17 18:50:03 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-03-17 18:50:03 -0800 |
| commit | fe3c92394eecb71595f3268d83f15501c274472d (patch) | |
| tree | 7eb6732a9d0005022a45cb78f4741855e9e547dd /include/linux | |
| parent | e368ea0bd61d20246c2351014df9464140840c55 (diff) | |
[PATCH] struct super_block cleanup - affs
Seperates affs_sb_info from struct super_block.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/affs_fs.h | 1 | ||||
| -rw-r--r-- | include/linux/affs_fs_sb.h | 5 | ||||
| -rw-r--r-- | include/linux/amigaffs.h | 10 | ||||
| -rw-r--r-- | include/linux/fs.h | 2 |
4 files changed, 10 insertions, 8 deletions
diff --git a/include/linux/affs_fs.h b/include/linux/affs_fs.h index 7859a5e1883c..47ed05c8b744 100644 --- a/include/linux/affs_fs.h +++ b/include/linux/affs_fs.h @@ -7,6 +7,7 @@ #include <linux/types.h> #include <linux/affs_fs_i.h> +#include <linux/affs_fs_sb.h> #define AFFS_SUPER_MAGIC 0xadff diff --git a/include/linux/affs_fs_sb.h b/include/linux/affs_fs_sb.h index 5a0485e97fd9..1f39cd806800 100644 --- a/include/linux/affs_fs_sb.h +++ b/include/linux/affs_fs_sb.h @@ -50,6 +50,9 @@ struct affs_sb_info { #define SF_READONLY 0x1000 /* Don't allow to remount rw */ /* short cut to get to the affs specific sb data */ -#define AFFS_SB (&sb->u.affs_sb) +static inline struct affs_sb_info *AFFS_SB(struct super_block *sb) +{ + return sb->u.generic_sbp; +} #endif diff --git a/include/linux/amigaffs.h b/include/linux/amigaffs.h index b4b1d430c306..342ab37e0c2e 100644 --- a/include/linux/amigaffs.h +++ b/include/linux/amigaffs.h @@ -18,7 +18,7 @@ #define GET_END_PTR(st,p,sz) ((st *)((char *)(p)+((sz)-sizeof(st)))) #define AFFS_GET_HASHENTRY(data,hashkey) be32_to_cpu(((struct dir_front *)data)->hashtable[hashkey]) -#define AFFS_BLOCK(sb, bh, blk) (AFFS_HEAD(bh)->table[(sb)->u.affs_sb.s_hashsize-1-(blk)]) +#define AFFS_BLOCK(sb, bh, blk) (AFFS_HEAD(bh)->table[AFFS_SB(sb)->s_hashsize-1-(blk)]) static inline void affs_set_blocksize(struct super_block *sb, int size) @@ -29,7 +29,7 @@ static inline struct buffer_head * affs_bread(struct super_block *sb, int block) { pr_debug(KERN_DEBUG "affs_bread: %d\n", block); - if (block >= AFFS_SB->s_reserved && block < AFFS_SB->s_partition_size) + if (block >= AFFS_SB(sb)->s_reserved && block < AFFS_SB(sb)->s_partition_size) return sb_bread(sb, block); return NULL; } @@ -37,7 +37,7 @@ static inline struct buffer_head * affs_getblk(struct super_block *sb, int block) { pr_debug(KERN_DEBUG "affs_getblk: %d\n", block); - if (block >= AFFS_SB->s_reserved && block < AFFS_SB->s_partition_size) + if (block >= AFFS_SB(sb)->s_reserved && block < AFFS_SB(sb)->s_partition_size) return sb_getblk(sb, block); return NULL; } @@ -46,7 +46,7 @@ affs_getzeroblk(struct super_block *sb, int block) { struct buffer_head *bh; pr_debug(KERN_DEBUG "affs_getzeroblk: %d\n", block); - if (block >= AFFS_SB->s_reserved && block < AFFS_SB->s_partition_size) { + if (block >= AFFS_SB(sb)->s_reserved && block < AFFS_SB(sb)->s_partition_size) { bh = sb_getblk(sb, block); lock_buffer(bh); memset(bh->b_data, 0 , sb->s_blocksize); @@ -61,7 +61,7 @@ affs_getemptyblk(struct super_block *sb, int block) { struct buffer_head *bh; pr_debug(KERN_DEBUG "affs_getemptyblk: %d\n", block); - if (block >= AFFS_SB->s_reserved && block < AFFS_SB->s_partition_size) { + if (block >= AFFS_SB(sb)->s_reserved && block < AFFS_SB(sb)->s_partition_size) { bh = sb_getblk(sb, block); wait_on_buffer(bh); mark_buffer_uptodate(bh, 1); diff --git a/include/linux/fs.h b/include/linux/fs.h index a1ae91bafcfc..85ae3dcb6496 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -648,7 +648,6 @@ struct quota_mount_options #include <linux/hpfs_fs_sb.h> #include <linux/ntfs_fs_sb.h> #include <linux/sysv_fs_sb.h> -#include <linux/affs_fs_sb.h> #include <linux/ufs_fs_sb.h> #include <linux/romfs_fs_sb.h> #include <linux/adfs_fs_sb.h> @@ -693,7 +692,6 @@ struct super_block { struct hpfs_sb_info hpfs_sb; struct ntfs_sb_info ntfs_sb; struct sysv_sb_info sysv_sb; - struct affs_sb_info affs_sb; struct ufs_sb_info ufs_sb; struct romfs_sb_info romfs_sb; struct adfs_sb_info adfs_sb; |
