diff options
Diffstat (limited to 'include/linux/qnx4_fs.h')
| -rw-r--r-- | include/linux/qnx4_fs.h | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/include/linux/qnx4_fs.h b/include/linux/qnx4_fs.h index 787d19ea9f46..8b9aee1a9ce3 100644 --- a/include/linux/qnx4_fs.h +++ b/include/linux/qnx4_fs.h | |||
| @@ -85,65 +85,4 @@ struct qnx4_super_block { | |||
| 85 | struct qnx4_inode_entry AltBoot; | 85 | struct qnx4_inode_entry AltBoot; |
| 86 | }; | 86 | }; |
| 87 | 87 | ||
| 88 | #ifdef __KERNEL__ | ||
| 89 | |||
| 90 | #define QNX4_DEBUG 0 | ||
| 91 | |||
| 92 | #if QNX4_DEBUG | ||
| 93 | #define QNX4DEBUG(X) printk X | ||
| 94 | #else | ||
| 95 | #define QNX4DEBUG(X) (void) 0 | ||
| 96 | #endif | ||
| 97 | |||
| 98 | struct qnx4_sb_info { | ||
| 99 | struct buffer_head *sb_buf; /* superblock buffer */ | ||
| 100 | struct qnx4_super_block *sb; /* our superblock */ | ||
| 101 | unsigned int Version; /* may be useful */ | ||
| 102 | struct qnx4_inode_entry *BitMap; /* useful */ | ||
| 103 | }; | ||
| 104 | |||
| 105 | struct qnx4_inode_info { | ||
| 106 | struct qnx4_inode_entry raw; | ||
| 107 | loff_t mmu_private; | ||
| 108 | struct inode vfs_inode; | ||
| 109 | }; | ||
| 110 | |||
| 111 | extern struct inode *qnx4_iget(struct super_block *, unsigned long); | ||
| 112 | extern struct dentry *qnx4_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd); | ||
| 113 | extern unsigned long qnx4_count_free_blocks(struct super_block *sb); | ||
| 114 | extern unsigned long qnx4_block_map(struct inode *inode, long iblock); | ||
| 115 | |||
| 116 | extern struct buffer_head *qnx4_bread(struct inode *, int, int); | ||
| 117 | |||
| 118 | extern const struct inode_operations qnx4_file_inode_operations; | ||
| 119 | extern const struct inode_operations qnx4_dir_inode_operations; | ||
| 120 | extern const struct file_operations qnx4_file_operations; | ||
| 121 | extern const struct file_operations qnx4_dir_operations; | ||
| 122 | extern int qnx4_is_free(struct super_block *sb, long block); | ||
| 123 | extern int qnx4_set_bitmap(struct super_block *sb, long block, int busy); | ||
| 124 | extern int qnx4_create(struct inode *inode, struct dentry *dentry, int mode, struct nameidata *nd); | ||
| 125 | extern void qnx4_truncate(struct inode *inode); | ||
| 126 | extern void qnx4_free_inode(struct inode *inode); | ||
| 127 | extern int qnx4_unlink(struct inode *dir, struct dentry *dentry); | ||
| 128 | extern int qnx4_rmdir(struct inode *dir, struct dentry *dentry); | ||
| 129 | extern int qnx4_sync_file(struct file *file, struct dentry *dentry, int); | ||
| 130 | extern int qnx4_sync_inode(struct inode *inode); | ||
| 131 | |||
| 132 | static inline struct qnx4_sb_info *qnx4_sb(struct super_block *sb) | ||
| 133 | { | ||
| 134 | return sb->s_fs_info; | ||
| 135 | } | ||
| 136 | |||
| 137 | static inline struct qnx4_inode_info *qnx4_i(struct inode *inode) | ||
| 138 | { | ||
| 139 | return container_of(inode, struct qnx4_inode_info, vfs_inode); | ||
| 140 | } | ||
| 141 | |||
| 142 | static inline struct qnx4_inode_entry *qnx4_raw_inode(struct inode *inode) | ||
| 143 | { | ||
| 144 | return &qnx4_i(inode)->raw; | ||
| 145 | } | ||
| 146 | |||
| 147 | #endif /* __KERNEL__ */ | ||
| 148 | |||
| 149 | #endif | 88 | #endif |
