revert-mm-fix-blkdev-size-calculation-in-generic_write_checks
[linux-2.6/linux-trees-mm.git] / fs / reiser4 / plugin / space / bitmap.h
blobbe867f108deb04b502f0337283598e8de1349cf7
1 /* Copyright 2002, 2003 by Hans Reiser, licensing governed by reiser4/README */
3 #if !defined (__REISER4_PLUGIN_SPACE_BITMAP_H__)
4 #define __REISER4_PLUGIN_SPACE_BITMAP_H__
6 #include "../../dformat.h"
7 #include "../../block_alloc.h"
9 #include <linux/types.h> /* for __u?? */
10 #include <linux/fs.h> /* for struct super_block */
11 /* EDWARD-FIXME-HANS: write something as informative as the below for every .h file lacking it. */
12 /* declarations of functions implementing methods of space allocator plugin for
13 bitmap based allocator. The functions themselves are in bitmap.c */
14 extern int reiser4_init_allocator_bitmap(reiser4_space_allocator *,
15 struct super_block *, void *);
16 extern int reiser4_destroy_allocator_bitmap(reiser4_space_allocator *,
17 struct super_block *);
18 extern int reiser4_alloc_blocks_bitmap(reiser4_space_allocator *,
19 reiser4_blocknr_hint *, int needed,
20 reiser4_block_nr * start,
21 reiser4_block_nr * len);
22 extern void reiser4_check_blocks_bitmap(const reiser4_block_nr *,
23 const reiser4_block_nr *, int);
24 extern void reiser4_dealloc_blocks_bitmap(reiser4_space_allocator *,
25 reiser4_block_nr,
26 reiser4_block_nr);
27 extern int reiser4_pre_commit_hook_bitmap(void);
29 #define reiser4_post_commit_hook_bitmap() do{}while(0)
30 #define reiser4_post_write_back_hook_bitmap() do{}while(0)
31 #define reiser4_print_info_bitmap(pref, al) do{}while(0)
33 typedef __u64 bmap_nr_t;
34 typedef __u32 bmap_off_t;
36 #endif /* __REISER4_PLUGIN_SPACE_BITMAP_H__ */
38 /* Make Linus happy.
39 Local variables:
40 c-indentation-style: "K&R"
41 mode-name: "LC"
42 c-basic-offset: 8
43 tab-width: 8
44 fill-column: 120
45 scroll-step: 1
46 End: