ext4: remove redundant argument in mb_find_extent()
PATCH 1/2 ext4: remove redundant argument in mb_find_extent()
From: Ronbin Dong <[email protected]>
The argument of "ord" in mb_find_extent is not necessary anymore.
Signed-off-by Robin Dong <[email protected]>
--- fs/ext4/mballoc.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
fs/ext4/mballoc.c +1 -2
@@ -1432,9 +1432,8 @@ static int mb_find_extent(struct ext4_buddy *e4b, int order, int block,if (mb_test_bit (next,EXT4_MB_BITMAP (e4b)))break ; - ord =mb_find_order_for_block (e4b, next); + order =mb_find_order_for_block (e4b, next); - order = ord; block = next >> order; ex->fe_len +=1 << order; }
Signature · 1 line
1.7.4.1
PATCH 2/2 ext4: fix a typo in struct ext4_allocation_context
From: Robin Dong <[email protected]>
This patch change "bext" to "best".
Signed-off-by Robin Dong <[email protected]>
--- fs/ext4/mballoc.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
fs/ext4/mballoc.h +1 -1
@@ -175,7 +175,7 @@ struct ext4_allocation_context {/* the best found extent */ struct ext4_free_extent ac_b_ex; -/* copy of the bext found extent taken before preallocation efforts */ +/* copy of the best found extent taken before preallocation efforts */ struct ext4_free_extent ac_f_ex;/* number of iterations done. we have to track to limit searching */
Signature · 1 line
1.7.4.1
Re: [PATCH 2/2] ext4: fix a typo in struct ext4_allocation_context
Quoted 5 lines · Robin Dong
From: Robin Dong <[email protected]>
This patch change "bext" to "best".
Signed-off-by Robin Dong <[email protected]>
Thanks, applied.
- Ted
Quoted 8 lines · Robin Dong
From: Ronbin Dong <[email protected]>
The argument of "ord" in
mb_find_extentis not necessary anymore.Signed-off-by Robin Dong <[email protected]>---
fs/ext4/mballoc.c| 3 +--1 files changed, 1 insertions(+), 2 deletions(-)
This patch doesn't remove the declaration "int ord;" at the start of the function.
Quoted 17 lines
fs/ext4/mballoc.c +1
-2@@ -1432,9 +1432,8 @@ static int mb_find_extent(struct ext4_buddy *e4b, int order, int block,if (mb_test_bit (next,EXT4_MB_BITMAP (e4b)))break ; - ord =mb_find_order_for_block (e4b, next); + order =mb_find_order_for_block (e4b, next); - order = ord; block = next >> order; ex->fe_len +=1 << order; }Signature · 1 line
1.7.4.1
Cheers, Andreas