Commit 70e08a38 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Linus Torvalds

[PATCH] bfs header move around + warning fix

(Patch has been ACKed by the bfs maintainer)

Now that bfs no more is included in the big unions in fs.h it makes
sense to move the contents of bfs_fs_i.h and bfs_fs_sb.h to a bfs-private
location.  I've created fs/bfs/bfs.h for that, also merging in bfs_defs.h.

In addition I've changed si_imap to an unsigned long pointer as the bitops
now use that type explicitly.
parent 4fbda124
/*
* include/linux/bfs_fs_sb.h
* fs/bfs/bfs.h
* Copyright (C) 1999 Tigran Aivazian <tigran@veritas.com>
*/
#ifndef _FS_BFS_BFS_H
#define _FS_BFS_BFS_H
#ifndef _LINUX_BFS_FS_SB
#define _LINUX_BFS_FS_SB
#include <linux/bfs_fs.h>
/*
* BFS file system in-core superblock info
......@@ -17,9 +18,43 @@ struct bfs_sb_info {
unsigned long si_lf_sblk;
unsigned long si_lf_eblk;
unsigned long si_lasti;
char * si_imap;
unsigned long * si_imap;
struct buffer_head * si_sbh; /* buffer header w/superblock */
struct bfs_super_block * si_bfs_sb; /* superblock in si_sbh->b_data */
};
#endif /* _LINUX_BFS_FS_SB */
/*
* BFS file system in-core inode info
*/
struct bfs_inode_info {
unsigned long i_dsk_ino; /* inode number from the disk, can be 0 */
unsigned long i_sblock;
unsigned long i_eblock;
struct inode vfs_inode;
};
static inline struct bfs_sb_info *BFS_SB(struct super_block *sb)
{
return sb->u.generic_sbp;
}
static inline struct bfs_inode_info *BFS_I(struct inode *inode)
{
return list_entry(inode, struct bfs_inode_info, vfs_inode);
}
#define printf(format, args...) \
printk(KERN_ERR "BFS-fs: %s(): " format, __FUNCTION__, ## args)
/* file.c */
extern struct inode_operations bfs_file_inops;
extern struct file_operations bfs_file_operations;
extern struct address_space_operations bfs_aops;
/* dir.c */
extern struct inode_operations bfs_dir_inops;
extern struct file_operations bfs_dir_operations;
#endif /* _FS_BFS_BFS_H */
#define printf(format, args...) \
printk(KERN_ERR "BFS-fs: %s(): " format, __FUNCTION__, ## args)
......@@ -6,10 +6,9 @@
#include <linux/time.h>
#include <linux/string.h>
#include <linux/bfs_fs.h>
#include <linux/fs.h>
#include <linux/smp_lock.h>
#include "bfs_defs.h"
#include "bfs.h"
#undef DEBUG
......
......@@ -5,9 +5,9 @@
*/
#include <linux/fs.h>
#include <linux/bfs_fs.h>
#include <linux/fs.h>
#include <linux/smp_lock.h>
#include "bfs_defs.h"
#include "bfs.h"
#undef DEBUG
......
......@@ -9,12 +9,10 @@
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/bfs_fs.h>
#include <linux/fs.h>
#include <linux/smp_lock.h>
#include <asm/uaccess.h>
#include "bfs_defs.h"
#include "bfs.h"
MODULE_AUTHOR("Tigran A. Aivazian <tigran@veritas.com>");
MODULE_DESCRIPTION("SCO UnixWare BFS filesystem for Linux");
......
......@@ -6,9 +6,6 @@
#ifndef _LINUX_BFS_FS_H
#define _LINUX_BFS_FS_H
#include <linux/bfs_fs_i.h>
#include <linux/bfs_fs_sb.h>
#define BFS_BSIZE_BITS 9
#define BFS_BSIZE (1<<BFS_BSIZE_BITS)
......@@ -79,26 +76,4 @@ struct bfs_super_block {
#define BFS_UNCLEAN(bfs_sb, sb) \
((bfs_sb->s_from != -1) && (bfs_sb->s_to != -1) && !(sb->s_flags & MS_RDONLY))
#ifdef __KERNEL__
/* file.c */
extern struct inode_operations bfs_file_inops;
extern struct file_operations bfs_file_operations;
extern struct address_space_operations bfs_aops;
/* dir.c */
extern struct inode_operations bfs_dir_inops;
extern struct file_operations bfs_dir_operations;
static inline struct bfs_sb_info *BFS_SB(struct super_block *sb)
{
return sb->u.generic_sbp;
}
static inline struct bfs_inode_info *BFS_I(struct inode *inode)
{
return list_entry(inode, struct bfs_inode_info, vfs_inode);
}
#endif /* __KERNEL__ */
#endif /* _LINUX_BFS_FS_H */
/*
* include/linux/bfs_fs_i.h
* Copyright (C) 1999 Tigran Aivazian <tigran@veritas.com>
*/
#ifndef _LINUX_BFS_FS_I
#define _LINUX_BFS_FS_I
#include <linux/fs.h>
/*
* BFS file system in-core inode info
*/
struct bfs_inode_info {
unsigned long i_dsk_ino; /* inode number from the disk, can be 0 */
unsigned long i_sblock;
unsigned long i_eblock;
struct inode vfs_inode;
};
#endif /* _LINUX_BFS_FS_I */
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