aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/mballoc.c
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2008-07-11 19:27:31 -0400
committerTheodore Ts'o <tytso@mit.edu>2008-07-11 19:27:31 -0400
commit654b4908bc17a6318d18f3036fecc5155de92f55 (patch)
treea77264435aa5ed0386334653fae7624ee423f8cf /fs/ext4/mballoc.c
parent7061eba75ceb0835ba61e7cbd757a6f9c1e4af92 (diff)
ext4: cleanup block allocator
Move the code related to block allocation to a single function and add helper funtions to differient allocation for data and meta data blocks Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Mingming Cao <cmm@us.ibm.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/mballoc.c')
-rw-r--r--fs/ext4/mballoc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index cde232bdaed0..816ba8cce79a 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -4041,7 +4041,7 @@ ext4_fsblk_t ext4_mb_new_blocks(handle_t *handle,
4041 sbi = EXT4_SB(sb); 4041 sbi = EXT4_SB(sb);
4042 4042
4043 if (!test_opt(sb, MBALLOC)) { 4043 if (!test_opt(sb, MBALLOC)) {
4044 block = ext4_new_blocks_old(handle, ar->inode, ar->goal, 4044 block = ext4_old_new_blocks(handle, ar->inode, ar->goal,
4045 &(ar->len), errp); 4045 &(ar->len), errp);
4046 return block; 4046 return block;
4047 } 4047 }