diff options
author | Robin Dong <sanbai@taobao.com> | 2011-10-26 05:30:30 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-10-26 05:30:30 -0400 |
commit | b051d8dc4e1f011e1b0543a875f5861be5d90222 (patch) | |
tree | 3995e217a162f4d1882f6111ac2f1a8dca64c211 | |
parent | 66a83cde47deb4e8874539326e12e88ed82158d3 (diff) |
ext4: remove unused variable in mb_find_extent()
The variable 'ord' in function mb_find_extent() is redundant, so
remove it.
Signed-off-by: Robin Dong <sanbai@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
-rw-r--r-- | fs/ext4/mballoc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index c66531d800b1..2bb1ddc5c30b 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c | |||
@@ -1391,7 +1391,6 @@ static int mb_find_extent(struct ext4_buddy *e4b, int order, int block, | |||
1391 | { | 1391 | { |
1392 | int next = block; | 1392 | int next = block; |
1393 | int max; | 1393 | int max; |
1394 | int ord; | ||
1395 | void *buddy; | 1394 | void *buddy; |
1396 | 1395 | ||
1397 | assert_spin_locked(ext4_group_lock_ptr(e4b->bd_sb, e4b->bd_group)); | 1396 | assert_spin_locked(ext4_group_lock_ptr(e4b->bd_sb, e4b->bd_group)); |
@@ -1433,9 +1432,8 @@ static int mb_find_extent(struct ext4_buddy *e4b, int order, int block, | |||
1433 | if (mb_test_bit(next, EXT4_MB_BITMAP(e4b))) | 1432 | if (mb_test_bit(next, EXT4_MB_BITMAP(e4b))) |
1434 | break; | 1433 | break; |
1435 | 1434 | ||
1436 | ord = mb_find_order_for_block(e4b, next); | 1435 | order = mb_find_order_for_block(e4b, next); |
1437 | 1436 | ||
1438 | order = ord; | ||
1439 | block = next >> order; | 1437 | block = next >> order; |
1440 | ex->fe_len += 1 << order; | 1438 | ex->fe_len += 1 << order; |
1441 | } | 1439 | } |