ocfs2/trivial: Code cleanup for allocation reservation.
[firefly-linux-kernel-4.4.55.git] / fs / ocfs2 / localalloc.c
index 00022aac2e8cf709d8d16a2da63d00b7c63ba42b..63c41e206792a1886024e19930aa47041f06aef0 100644 (file)
@@ -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)