Andreas Dilger | 717d50e | 2007-10-16 18:38:25 -0400 | [diff] [blame] | 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); |
Theodore Ts'o | 574ca17 | 2008-07-11 19:27:31 -0400 | [diff] [blame] | 16 | struct buffer_head *ext4_read_block_bitmap(struct super_block *sb, |
Avantika Mathur | fd2d429 | 2008-01-28 23:58:27 -0500 | [diff] [blame] | 17 | ext4_group_t block_group); |
Andreas Dilger | 717d50e | 2007-10-16 18:38:25 -0400 | [diff] [blame] | 18 | extern unsigned ext4_init_block_bitmap(struct super_block *sb, |
Avantika Mathur | fd2d429 | 2008-01-28 23:58:27 -0500 | [diff] [blame] | 19 | struct buffer_head *bh, |
| 20 | ext4_group_t group, |
Andreas Dilger | 717d50e | 2007-10-16 18:38:25 -0400 | [diff] [blame] | 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, |
Avantika Mathur | fd2d429 | 2008-01-28 23:58:27 -0500 | [diff] [blame] | 25 | struct buffer_head *bh, |
| 26 | ext4_group_t group, |
Andreas Dilger | 717d50e | 2007-10-16 18:38:25 -0400 | [diff] [blame] | 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 */ |