blob: c2c0a8d06d0e059ba949bcadd9081555ab7f298c [file] [log] [blame]
Andreas Dilger717d50e2007-10-16 18:38:25 -04001/*
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
12extern __le16 ext4_group_desc_csum(struct ext4_sb_info *sbi, __u32 group,
13 struct ext4_group_desc *gdp);
14extern int ext4_group_desc_csum_verify(struct ext4_sb_info *sbi, __u32 group,
15 struct ext4_group_desc *gdp);
Theodore Ts'o574ca172008-07-11 19:27:31 -040016struct buffer_head *ext4_read_block_bitmap(struct super_block *sb,
Avantika Mathurfd2d4292008-01-28 23:58:27 -050017 ext4_group_t block_group);
Andreas Dilger717d50e2007-10-16 18:38:25 -040018extern unsigned ext4_init_block_bitmap(struct super_block *sb,
Avantika Mathurfd2d4292008-01-28 23:58:27 -050019 struct buffer_head *bh,
20 ext4_group_t group,
Andreas Dilger717d50e2007-10-16 18:38:25 -040021 struct ext4_group_desc *desc);
22#define ext4_free_blocks_after_init(sb, group, desc) \
23 ext4_init_block_bitmap(sb, NULL, group, desc)
24extern unsigned ext4_init_inode_bitmap(struct super_block *sb,
Avantika Mathurfd2d4292008-01-28 23:58:27 -050025 struct buffer_head *bh,
26 ext4_group_t group,
Andreas Dilger717d50e2007-10-16 18:38:25 -040027 struct ext4_group_desc *desc);
28extern void mark_bitmap_end(int start_bit, int end_bit, char *bitmap);
29#endif /* _LINUX_EXT4_GROUP_H */