[PATCH] uml: Change printf to printk in console driver
[linux/fpc-iii.git] / fs / bfs / bfs.h
blob1020dbc88bec0b5cc545b0de22d9dff4c0cd67c1
1 /*
2 * fs/bfs/bfs.h
3 * Copyright (C) 1999 Tigran Aivazian <tigran@veritas.com>
4 */
5 #ifndef _FS_BFS_BFS_H
6 #define _FS_BFS_BFS_H
8 #include <linux/bfs_fs.h>
11 * BFS file system in-core superblock info
13 struct bfs_sb_info {
14 unsigned long si_blocks;
15 unsigned long si_freeb;
16 unsigned long si_freei;
17 unsigned long si_lf_ioff;
18 unsigned long si_lf_sblk;
19 unsigned long si_lf_eblk;
20 unsigned long si_lasti;
21 unsigned long * si_imap;
22 struct buffer_head * si_sbh; /* buffer header w/superblock */
23 struct bfs_super_block * si_bfs_sb; /* superblock in si_sbh->b_data */
27 * BFS file system in-core inode info
29 struct bfs_inode_info {
30 unsigned long i_dsk_ino; /* inode number from the disk, can be 0 */
31 unsigned long i_sblock;
32 unsigned long i_eblock;
33 struct inode vfs_inode;
36 static inline struct bfs_sb_info *BFS_SB(struct super_block *sb)
38 return sb->s_fs_info;
41 static inline struct bfs_inode_info *BFS_I(struct inode *inode)
43 return list_entry(inode, struct bfs_inode_info, vfs_inode);
47 #define printf(format, args...) \
48 printk(KERN_ERR "BFS-fs: %s(): " format, __FUNCTION__, ## args)
51 /* file.c */
52 extern struct inode_operations bfs_file_inops;
53 extern struct file_operations bfs_file_operations;
54 extern struct address_space_operations bfs_aops;
56 /* dir.c */
57 extern struct inode_operations bfs_dir_inops;
58 extern struct file_operations bfs_dir_operations;
60 #endif /* _FS_BFS_BFS_H */