3 * Copyright (C) 1999 Tigran Aivazian <tigran@veritas.com>
8 #include <linux/bfs_fs.h>
11 * BFS file system in-core superblock info
14 unsigned long si_blocks
;
15 unsigned long si_freeb
;
16 unsigned long si_freei
;
17 unsigned long si_lf_eblk
;
18 unsigned long si_lasti
;
19 unsigned long * si_imap
;
20 struct buffer_head
* si_sbh
; /* buffer header w/superblock */
24 * BFS file system in-core inode info
26 struct bfs_inode_info
{
27 unsigned long i_dsk_ino
; /* inode number from the disk, can be 0 */
28 unsigned long i_sblock
;
29 unsigned long i_eblock
;
30 struct inode vfs_inode
;
33 static inline struct bfs_sb_info
*BFS_SB(struct super_block
*sb
)
38 static inline struct bfs_inode_info
*BFS_I(struct inode
*inode
)
40 return container_of(inode
, struct bfs_inode_info
, vfs_inode
);
44 #define printf(format, args...) \
45 printk(KERN_ERR "BFS-fs: %s(): " format, __FUNCTION__, ## args)
49 extern const struct inode_operations bfs_file_inops
;
50 extern const struct file_operations bfs_file_operations
;
51 extern const struct address_space_operations bfs_aops
;
54 extern const struct inode_operations bfs_dir_inops
;
55 extern const struct file_operations bfs_dir_operations
;
57 #endif /* _FS_BFS_BFS_H */