ocfs2/trivial: Code cleanup for allocation reservation.
Two tiny cleanup for allocation reservation. 1. Remove some extra codes in ocfs2_local_alloc_find_clear_bits. 2. Remove an unuseful variables in ocfs2_find_resv_lhs. Signed-off-by: Tao Ma <tao.ma@oracle.com> Acked-by: Mark Fasheh <mfasheh@suse.com> Signed-off-by: Joel Becker <joel.becker@oracle.com>
This commit is contained in:
@@ -879,13 +879,10 @@ static int ocfs2_local_alloc_find_clear_bits(struct ocfs2_super *osb,
|
||||
mlog(0, "Exiting loop, bitoff = %d, numfound = %d\n", bitoff,
|
||||
numfound);
|
||||
|
||||
if (numfound == *numbits) {
|
||||
if (numfound == *numbits)
|
||||
bitoff = startoff - numfound;
|
||||
*numbits = numfound;
|
||||
} else {
|
||||
numfound = 0;
|
||||
else
|
||||
bitoff = -1;
|
||||
}
|
||||
|
||||
bail:
|
||||
if (local_resv)
|
||||
|
Reference in New Issue
Block a user