diff options
author | Theodore Ts'o <tytso@mit.edu> | 2009-05-01 19:44:44 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-05-01 19:44:44 -0400 |
commit | bb23c20a851a5038b255a3c0d0aa56093c1da3f8 (patch) | |
tree | 257211bf2bf5ffd53fe24b0528928ca4d3f2ecba /fs/ext4 | |
parent | 596397b77c895d0fa3674f579c94ad5ea88ef01d (diff) |
ext4: Move fs/ext4/group.h into ext4.h
Move the function prototypes in group.h into ext4.h so they are all
defined in one place.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/balloc.c | 1 | ||||
-rw-r--r-- | fs/ext4/ext4.h | 17 | ||||
-rw-r--r-- | fs/ext4/group.h | 29 | ||||
-rw-r--r-- | fs/ext4/ialloc.c | 1 | ||||
-rw-r--r-- | fs/ext4/mballoc.h | 1 | ||||
-rw-r--r-- | fs/ext4/resize.c | 1 | ||||
-rw-r--r-- | fs/ext4/super.c | 1 |
7 files changed, 17 insertions, 34 deletions
diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c index a5ba039850c5..92f557d957d9 100644 --- a/fs/ext4/balloc.c +++ b/fs/ext4/balloc.c | |||
@@ -19,7 +19,6 @@ | |||
19 | #include <linux/buffer_head.h> | 19 | #include <linux/buffer_head.h> |
20 | #include "ext4.h" | 20 | #include "ext4.h" |
21 | #include "ext4_jbd2.h" | 21 | #include "ext4_jbd2.h" |
22 | #include "group.h" | ||
23 | #include "mballoc.h" | 22 | #include "mballoc.h" |
24 | 23 | ||
25 | /* | 24 | /* |
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index d9c5251d082c..5973f3261b0c 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h | |||
@@ -1270,6 +1270,14 @@ extern struct ext4_group_desc * ext4_get_group_desc(struct super_block * sb, | |||
1270 | ext4_group_t block_group, | 1270 | ext4_group_t block_group, |
1271 | struct buffer_head ** bh); | 1271 | struct buffer_head ** bh); |
1272 | extern int ext4_should_retry_alloc(struct super_block *sb, int *retries); | 1272 | extern int ext4_should_retry_alloc(struct super_block *sb, int *retries); |
1273 | struct buffer_head *ext4_read_block_bitmap(struct super_block *sb, | ||
1274 | ext4_group_t block_group); | ||
1275 | extern unsigned ext4_init_block_bitmap(struct super_block *sb, | ||
1276 | struct buffer_head *bh, | ||
1277 | ext4_group_t group, | ||
1278 | struct ext4_group_desc *desc); | ||
1279 | #define ext4_free_blocks_after_init(sb, group, desc) \ | ||
1280 | ext4_init_block_bitmap(sb, NULL, group, desc) | ||
1273 | 1281 | ||
1274 | /* dir.c */ | 1282 | /* dir.c */ |
1275 | extern int ext4_check_dir_entry(const char *, struct inode *, | 1283 | extern int ext4_check_dir_entry(const char *, struct inode *, |
@@ -1294,6 +1302,11 @@ extern struct inode * ext4_orphan_get(struct super_block *, unsigned long); | |||
1294 | extern unsigned long ext4_count_free_inodes(struct super_block *); | 1302 | extern unsigned long ext4_count_free_inodes(struct super_block *); |
1295 | extern unsigned long ext4_count_dirs(struct super_block *); | 1303 | extern unsigned long ext4_count_dirs(struct super_block *); |
1296 | extern void ext4_check_inodes_bitmap(struct super_block *); | 1304 | extern void ext4_check_inodes_bitmap(struct super_block *); |
1305 | extern unsigned ext4_init_inode_bitmap(struct super_block *sb, | ||
1306 | struct buffer_head *bh, | ||
1307 | ext4_group_t group, | ||
1308 | struct ext4_group_desc *desc); | ||
1309 | extern void mark_bitmap_end(int start_bit, int end_bit, char *bitmap); | ||
1297 | 1310 | ||
1298 | /* mballoc.c */ | 1311 | /* mballoc.c */ |
1299 | extern long ext4_mb_stats; | 1312 | extern long ext4_mb_stats; |
@@ -1417,6 +1430,10 @@ extern void ext4_used_dirs_set(struct super_block *sb, | |||
1417 | struct ext4_group_desc *bg, __u32 count); | 1430 | struct ext4_group_desc *bg, __u32 count); |
1418 | extern void ext4_itable_unused_set(struct super_block *sb, | 1431 | extern void ext4_itable_unused_set(struct super_block *sb, |
1419 | struct ext4_group_desc *bg, __u32 count); | 1432 | struct ext4_group_desc *bg, __u32 count); |
1433 | extern __le16 ext4_group_desc_csum(struct ext4_sb_info *sbi, __u32 group, | ||
1434 | struct ext4_group_desc *gdp); | ||
1435 | extern int ext4_group_desc_csum_verify(struct ext4_sb_info *sbi, __u32 group, | ||
1436 | struct ext4_group_desc *gdp); | ||
1420 | 1437 | ||
1421 | static inline ext4_fsblk_t ext4_blocks_count(struct ext4_super_block *es) | 1438 | static inline ext4_fsblk_t ext4_blocks_count(struct ext4_super_block *es) |
1422 | { | 1439 | { |
diff --git a/fs/ext4/group.h b/fs/ext4/group.h deleted file mode 100644 index c2c0a8d06d0e..000000000000 --- a/fs/ext4/group.h +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
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 *ext4_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 */ | ||
diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c index 55ba419ca00b..916d05c881ca 100644 --- a/fs/ext4/ialloc.c +++ b/fs/ext4/ialloc.c | |||
@@ -27,7 +27,6 @@ | |||
27 | #include "ext4_jbd2.h" | 27 | #include "ext4_jbd2.h" |
28 | #include "xattr.h" | 28 | #include "xattr.h" |
29 | #include "acl.h" | 29 | #include "acl.h" |
30 | #include "group.h" | ||
31 | 30 | ||
32 | /* | 31 | /* |
33 | * ialloc.c contains the inodes allocation and deallocation routines | 32 | * ialloc.c contains the inodes allocation and deallocation routines |
diff --git a/fs/ext4/mballoc.h b/fs/ext4/mballoc.h index dd9e6cd5f6cf..75e34f69215b 100644 --- a/fs/ext4/mballoc.h +++ b/fs/ext4/mballoc.h | |||
@@ -23,7 +23,6 @@ | |||
23 | #include <linux/mutex.h> | 23 | #include <linux/mutex.h> |
24 | #include "ext4_jbd2.h" | 24 | #include "ext4_jbd2.h" |
25 | #include "ext4.h" | 25 | #include "ext4.h" |
26 | #include "group.h" | ||
27 | 26 | ||
28 | /* | 27 | /* |
29 | * with AGGRESSIVE_CHECK allocator runs consistency checks over | 28 | * with AGGRESSIVE_CHECK allocator runs consistency checks over |
diff --git a/fs/ext4/resize.c b/fs/ext4/resize.c index e8ded13b5cb1..27eb289eea37 100644 --- a/fs/ext4/resize.c +++ b/fs/ext4/resize.c | |||
@@ -15,7 +15,6 @@ | |||
15 | #include <linux/slab.h> | 15 | #include <linux/slab.h> |
16 | 16 | ||
17 | #include "ext4_jbd2.h" | 17 | #include "ext4_jbd2.h" |
18 | #include "group.h" | ||
19 | 18 | ||
20 | #define outside(b, first, last) ((b) < (first) || (b) >= (last)) | 19 | #define outside(b, first, last) ((b) < (first) || (b) >= (last)) |
21 | #define inside(b, first, last) ((b) >= (first) && (b) < (last)) | 20 | #define inside(b, first, last) ((b) >= (first) && (b) < (last)) |
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index d79e1c428b4a..7903f20c8075 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -46,7 +46,6 @@ | |||
46 | #include "ext4_jbd2.h" | 46 | #include "ext4_jbd2.h" |
47 | #include "xattr.h" | 47 | #include "xattr.h" |
48 | #include "acl.h" | 48 | #include "acl.h" |
49 | #include "group.h" | ||
50 | 49 | ||
51 | struct proc_dir_entry *ext4_proc_root; | 50 | struct proc_dir_entry *ext4_proc_root; |
52 | static struct kset *ext4_kset; | 51 | static struct kset *ext4_kset; |