diff options
author | Eric Sandeen <sandeen@redhat.com> | 2011-06-28 10:01:31 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-06-28 10:01:31 -0400 |
commit | f86186b44b4164600cce03d0d93ad48ec21fa429 (patch) | |
tree | 48aafabbbe46d22de84e4e9b3ebf7c5b35fd6d1e /fs/ext4/ext4.h | |
parent | dae1e52cb1267bf8f52e5e47a80fab566d7e8aa4 (diff) | |
download | linux-3.10-f86186b44b4164600cce03d0d93ad48ec21fa429.tar.gz linux-3.10-f86186b44b4164600cce03d0d93ad48ec21fa429.tar.bz2 linux-3.10-f86186b44b4164600cce03d0d93ad48ec21fa429.zip |
ext4: refactor duplicated block placement code
I found that ext4_ext_find_goal() and ext4_find_near()
share the same code for returning a coloured start block
based on i_block_group.
We can refactor this into a common function so that they
don't diverge in the future.
Thanks to adilger for suggesting the new function name.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index ddaf5043fb3..49d2cea4738 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -1743,6 +1743,7 @@ extern unsigned ext4_init_block_bitmap(struct super_block *sb, struct ext4_group_desc *desc); #define ext4_free_blocks_after_init(sb, group, desc) \ ext4_init_block_bitmap(sb, NULL, group, desc) +ext4_fsblk_t ext4_inode_to_goal_block(struct inode *); /* dir.c */ extern int __ext4_check_dir_entry(const char *, unsigned int, struct inode *, |