ext4.h (404c3bc30cb1361e1b3533643326ab472d24a618) | ext4.h (952fc18ef9ec707ebdc16c0786ec360295e5ff15) |
---|---|
1/* 2 * ext4.h 3 * 4 * Copyright (C) 1992, 1993, 1994, 1995 5 * Remy Card (card@masi.ibp.fr) 6 * Laboratoire MASI - Institut Blaise Pascal 7 * Universite Pierre et Marie Curie (Paris VI) 8 * --- 1147 unchanged lines hidden (view full) --- 1156 unsigned long s_blocks_per_group;/* Number of blocks in a group */ 1157 unsigned long s_clusters_per_group; /* Number of clusters in a group */ 1158 unsigned long s_inodes_per_group;/* Number of inodes in a group */ 1159 unsigned long s_itb_per_group; /* Number of inode table blocks per group */ 1160 unsigned long s_gdb_count; /* Number of group descriptor blocks */ 1161 unsigned long s_desc_per_block; /* Number of group descriptors per block */ 1162 ext4_group_t s_groups_count; /* Number of groups in the fs */ 1163 ext4_group_t s_blockfile_groups;/* Groups acceptable for non-extent files */ | 1/* 2 * ext4.h 3 * 4 * Copyright (C) 1992, 1993, 1994, 1995 5 * Remy Card (card@masi.ibp.fr) 6 * Laboratoire MASI - Institut Blaise Pascal 7 * Universite Pierre et Marie Curie (Paris VI) 8 * --- 1147 unchanged lines hidden (view full) --- 1156 unsigned long s_blocks_per_group;/* Number of blocks in a group */ 1157 unsigned long s_clusters_per_group; /* Number of clusters in a group */ 1158 unsigned long s_inodes_per_group;/* Number of inodes in a group */ 1159 unsigned long s_itb_per_group; /* Number of inode table blocks per group */ 1160 unsigned long s_gdb_count; /* Number of group descriptor blocks */ 1161 unsigned long s_desc_per_block; /* Number of group descriptors per block */ 1162 ext4_group_t s_groups_count; /* Number of groups in the fs */ 1163 ext4_group_t s_blockfile_groups;/* Groups acceptable for non-extent files */ |
1164 unsigned long s_overhead_last; /* Last calculated overhead */ 1165 unsigned long s_blocks_last; /* Last seen block count */ | 1164 unsigned long s_overhead; /* # of fs overhead clusters */ |
1166 unsigned int s_cluster_ratio; /* Number of blocks per cluster */ 1167 unsigned int s_cluster_bits; /* log2 of s_cluster_ratio */ 1168 loff_t s_bitmap_maxbytes; /* max bytes for bitmap files */ 1169 struct buffer_head * s_sbh; /* Buffer containing the super block */ 1170 struct ext4_super_block *s_es; /* Pointer to the super block in the buffer */ 1171 struct buffer_head **s_group_desc; 1172 unsigned int s_mount_opt; 1173 unsigned int s_mount_opt2; --- 673 unchanged lines hidden (view full) --- 1847 * Ok, these declarations are also in <linux/kernel.h> but none of the 1848 * ext4 source programs needs to include it so they are duplicated here. 1849 */ 1850# define NORET_TYPE /**/ 1851# define ATTRIB_NORET __attribute__((noreturn)) 1852# define NORET_AND noreturn, 1853 1854/* bitmap.c */ | 1165 unsigned int s_cluster_ratio; /* Number of blocks per cluster */ 1166 unsigned int s_cluster_bits; /* log2 of s_cluster_ratio */ 1167 loff_t s_bitmap_maxbytes; /* max bytes for bitmap files */ 1168 struct buffer_head * s_sbh; /* Buffer containing the super block */ 1169 struct ext4_super_block *s_es; /* Pointer to the super block in the buffer */ 1170 struct buffer_head **s_group_desc; 1171 unsigned int s_mount_opt; 1172 unsigned int s_mount_opt2; --- 673 unchanged lines hidden (view full) --- 1846 * Ok, these declarations are also in <linux/kernel.h> but none of the 1847 * ext4 source programs needs to include it so they are duplicated here. 1848 */ 1849# define NORET_TYPE /**/ 1850# define ATTRIB_NORET __attribute__((noreturn)) 1851# define NORET_AND noreturn, 1852 1853/* bitmap.c */ |
1855extern unsigned int ext4_count_free(struct buffer_head *, unsigned); | 1854extern unsigned int ext4_count_free(char *bitmap, unsigned numchars); |
1856void ext4_inode_bitmap_csum_set(struct super_block *sb, ext4_group_t group, 1857 struct ext4_group_desc *gdp, 1858 struct buffer_head *bh, int sz); 1859int ext4_inode_bitmap_csum_verify(struct super_block *sb, ext4_group_t group, 1860 struct ext4_group_desc *gdp, 1861 struct buffer_head *bh, int sz); 1862void ext4_block_bitmap_csum_set(struct super_block *sb, ext4_group_t group, 1863 struct ext4_group_desc *gdp, --- 168 unchanged lines hidden (view full) --- 2032extern int ext4_group_add(struct super_block *sb, 2033 struct ext4_new_group_data *input); 2034extern int ext4_group_extend(struct super_block *sb, 2035 struct ext4_super_block *es, 2036 ext4_fsblk_t n_blocks_count); 2037extern int ext4_resize_fs(struct super_block *sb, ext4_fsblk_t n_blocks_count); 2038 2039/* super.c */ | 1855void ext4_inode_bitmap_csum_set(struct super_block *sb, ext4_group_t group, 1856 struct ext4_group_desc *gdp, 1857 struct buffer_head *bh, int sz); 1858int ext4_inode_bitmap_csum_verify(struct super_block *sb, ext4_group_t group, 1859 struct ext4_group_desc *gdp, 1860 struct buffer_head *bh, int sz); 1861void ext4_block_bitmap_csum_set(struct super_block *sb, ext4_group_t group, 1862 struct ext4_group_desc *gdp, --- 168 unchanged lines hidden (view full) --- 2031extern int ext4_group_add(struct super_block *sb, 2032 struct ext4_new_group_data *input); 2033extern int ext4_group_extend(struct super_block *sb, 2034 struct ext4_super_block *es, 2035 ext4_fsblk_t n_blocks_count); 2036extern int ext4_resize_fs(struct super_block *sb, ext4_fsblk_t n_blocks_count); 2037 2038/* super.c */ |
2039extern int ext4_calculate_overhead(struct super_block *sb); |
|
2040extern int ext4_superblock_csum_verify(struct super_block *sb, 2041 struct ext4_super_block *es); 2042extern void ext4_superblock_csum_set(struct super_block *sb, 2043 struct ext4_super_block *es); 2044extern void *ext4_kvmalloc(size_t size, gfp_t flags); 2045extern void *ext4_kvzalloc(size_t size, gfp_t flags); 2046extern void ext4_kvfree(void *ptr); 2047extern __printf(4, 5) --- 429 unchanged lines hidden --- | 2040extern int ext4_superblock_csum_verify(struct super_block *sb, 2041 struct ext4_super_block *es); 2042extern void ext4_superblock_csum_set(struct super_block *sb, 2043 struct ext4_super_block *es); 2044extern void *ext4_kvmalloc(size_t size, gfp_t flags); 2045extern void *ext4_kvzalloc(size_t size, gfp_t flags); 2046extern void ext4_kvfree(void *ptr); 2047extern __printf(4, 5) --- 429 unchanged lines hidden --- |