]>
git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blob - fs/ext4/group.h
2 * linux/fs/ext4/group.h
4 * Copyright (C) 2007 Cluster File Systems, Inc
6 * Author: Andreas Dilger <adilger@clusterfs.com>
9 #ifndef _LINUX_EXT4_GROUP_H
10 #define _LINUX_EXT4_GROUP_H
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 unsigned int block_group
);
18 extern unsigned ext4_init_block_bitmap(struct super_block
*sb
,
19 struct buffer_head
*bh
, int group
,
20 struct ext4_group_desc
*desc
);
21 #define ext4_free_blocks_after_init(sb, group, desc) \
22 ext4_init_block_bitmap(sb, NULL, group, desc)
23 extern unsigned ext4_init_inode_bitmap(struct super_block
*sb
,
24 struct buffer_head
*bh
, int group
,
25 struct ext4_group_desc
*desc
);
26 extern void mark_bitmap_end(int start_bit
, int end_bit
, char *bitmap
);
27 #endif /* _LINUX_EXT4_GROUP_H */