Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/pci-2.6
[linux-2.6] / fs / ext4 / group.h
1 /*
2  *  linux/fs/ext4/group.h
3  *
4  * Copyright (C) 2007 Cluster File Systems, Inc
5  *
6  * Author: Andreas Dilger <adilger@clusterfs.com>
7  */
8
9 #ifndef _LINUX_EXT4_GROUP_H
10 #define _LINUX_EXT4_GROUP_H
11
12 extern __le16 ext4_group_desc_csum(struct ext4_sb_info *sbi, __u32 group,
13                                    struct ext4_group_desc *gdp);
14 extern int ext4_group_desc_csum_verify(struct ext4_sb_info *sbi, __u32 group,
15                                        struct ext4_group_desc *gdp);
16 struct buffer_head *read_block_bitmap(struct super_block *sb,
17                                       ext4_group_t block_group);
18 extern unsigned ext4_init_block_bitmap(struct super_block *sb,
19                                        struct buffer_head *bh,
20                                        ext4_group_t group,
21                                        struct ext4_group_desc *desc);
22 #define ext4_free_blocks_after_init(sb, group, desc)                    \
23                 ext4_init_block_bitmap(sb, NULL, group, desc)
24 extern unsigned ext4_init_inode_bitmap(struct super_block *sb,
25                                        struct buffer_head *bh,
26                                        ext4_group_t group,
27                                        struct ext4_group_desc *desc);
28 extern void mark_bitmap_end(int start_bit, int end_bit, char *bitmap);
29 #endif /* _LINUX_EXT4_GROUP_H */