aboutsummaryrefslogtreecommitdiffstats
path: root/fs/bfs/bfs.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /fs/bfs/bfs.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'fs/bfs/bfs.h')
-rw-r--r--fs/bfs/bfs.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/fs/bfs/bfs.h b/fs/bfs/bfs.h
new file mode 100644
index 000000000000..1020dbc88bec
--- /dev/null
+++ b/fs/bfs/bfs.h
@@ -0,0 +1,60 @@
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
7
8#include <linux/bfs_fs.h>
9
10/*
11 * BFS file system in-core superblock info
12 */
13struct 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 */
24};
25
26/*
27 * BFS file system in-core inode info
28 */
29struct 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;
34};
35
36static inline struct bfs_sb_info *BFS_SB(struct super_block *sb)
37{
38 return sb->s_fs_info;
39}
40
41static inline struct bfs_inode_info *BFS_I(struct inode *inode)
42{
43 return list_entry(inode, struct bfs_inode_info, vfs_inode);
44}
45
46
47#define printf(format, args...) \
48 printk(KERN_ERR "BFS-fs: %s(): " format, __FUNCTION__, ## args)
49
50
51/* file.c */
52extern struct inode_operations bfs_file_inops;
53extern struct file_operations bfs_file_operations;
54extern struct address_space_operations bfs_aops;
55
56/* dir.c */
57extern struct inode_operations bfs_dir_inops;
58extern struct file_operations bfs_dir_operations;
59
60#endif /* _FS_BFS_BFS_H */