net: dsa: b53: Fix ARL register definitions
[linux/fpc-iii.git] / fs / bfs / bfs.h
blob67aef3bb89e4c491b84691089020ecb15b00fdbf
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * fs/bfs/bfs.h
4 * Copyright (C) 1999 Tigran Aivazian <tigran@veritas.com>
5 */
6 #ifndef _FS_BFS_BFS_H
7 #define _FS_BFS_BFS_H
9 #include <linux/bfs_fs.h>
12 * BFS file system in-core superblock info
14 struct bfs_sb_info {
15 unsigned long si_blocks;
16 unsigned long si_freeb;
17 unsigned long si_freei;
18 unsigned long si_lf_eblk;
19 unsigned long si_lasti;
20 unsigned long *si_imap;
21 struct mutex bfs_lock;
25 * BFS file system in-core inode info
27 struct bfs_inode_info {
28 unsigned long i_dsk_ino; /* inode number from the disk, can be 0 */
29 unsigned long i_sblock;
30 unsigned long i_eblock;
31 struct inode vfs_inode;
34 static inline struct bfs_sb_info *BFS_SB(struct super_block *sb)
36 return sb->s_fs_info;
39 static inline struct bfs_inode_info *BFS_I(struct inode *inode)
41 return container_of(inode, struct bfs_inode_info, vfs_inode);
45 #define printf(format, args...) \
46 printk(KERN_ERR "BFS-fs: %s(): " format, __func__, ## args)
48 /* inode.c */
49 extern struct inode *bfs_iget(struct super_block *sb, unsigned long ino);
50 extern void bfs_dump_imap(const char *, struct super_block *);
52 /* file.c */
53 extern const struct inode_operations bfs_file_inops;
54 extern const struct file_operations bfs_file_operations;
55 extern const struct address_space_operations bfs_aops;
57 /* dir.c */
58 extern const struct inode_operations bfs_dir_inops;
59 extern const struct file_operations bfs_dir_operations;
61 #endif /* _FS_BFS_BFS_H */