4 #define OBD_EXT2_RUNIT _IOWR('f', 61, long)
8 struct super_block * ext2_sb;
12 /* development definitions */
13 extern struct obdfs_sb_info *obd_sbi;
14 extern struct file_operations *obd_fso;
17 extern struct obd_ops ext2_obd_ops;
18 inline long ext2_block_map (struct inode * inode, long block);
21 int ext2_new_block (const struct inode * inode, unsigned long goal,
22 u32 * prealloc_count, u32 * prealloc_block, int * err);
23 void ext2_free_blocks (const struct inode * inode, unsigned long block,
25 unsigned long ext2_count_free_blocks (struct super_block * sb);
26 int ext2_group_sparse(int group);
27 struct ext2_group_desc * ext2_get_group_desc(struct super_block * sb,
28 unsigned int block_group,
29 struct buffer_head ** bh);
32 unsigned long ext2_count_free(struct buffer_head * map, unsigned int numchars);
35 extern int obd_sync_file(struct file * file, struct dentry *dentry);
38 extern void ext2_free_inode (struct inode * inode);
39 extern struct inode * ext2_new_inode (const struct inode * dir, int mode,
41 extern unsigned long ext2_count_free_inodes (struct super_block * sb);
42 extern void ext2_check_inodes_bitmap (struct super_block * sb);
43 extern int load_inode_bitmap (struct super_block * sb,
44 unsigned int block_group);
47 void obd_read_inode (struct inode * inode);
48 void obd_write_inode (struct inode * inode);
49 void obd_put_inode (struct inode * inode);
50 void obd_delete_inode (struct inode * inode);
51 void obd_discard_prealloc_blocks (struct inode * inode);
52 int obd_sync_inode (struct inode *inode);
53 struct buffer_head * obd_bread (struct inode * inode, int block,
54 int create, int *err);
55 struct buffer_head * obd_getblk (struct inode * inode, long block,
56 int create, int * err);
60 #define ext2_warning obd_warning
62 #define ext2_error obd_warning
63 #define ext2_panic obd_warning
66 # define ext2_debug(format, a...) CDEBUG(D_EXT2, format, ## a)
69 #define obd_error obd_warning
70 #define obd_panic obd_warning
71 #define obd_warning(sb, func, format, a...) CDEBUG(D_WARNING, format, ## a)
73 int obd_remount (struct super_block * sb, int * flags, char * data);
74 struct super_block * ext2_read_super (struct super_block * sb, void * data,
78 void obd_truncate (struct inode * inode);
82 extern struct inode_operations ext2_dir_inode_operations;
85 extern struct file_operations ext2_file_operations;
86 extern struct inode_operations ext2_file_inode_operations;
89 extern struct super_operations ext2_sops;