Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 164c653 in mainline


Ignore:
Timestamp:
2011-04-19T19:57:43Z (11 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
864b0dd
Parents:
8f6c6264
Message:

zone_frame_free() should return non-zero only if it actually freed something.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/frame.c

    r8f6c6264 r164c653  
    481481       
    482482        frame_t *frame = &zone->frames[frame_idx];
    483         size_t size = 1 << frame->buddy_order;
     483        size_t size = 0;
    484484       
    485485        ASSERT(frame->refcount);
    486486       
    487487        if (!--frame->refcount) {
    488                 buddy_system_free(zone->buddy_system, &frame->buddy_link);
    489                
     488                size = 1 << frame->buddy_order;
     489                buddy_system_free(zone->buddy_system, &frame->buddy_link);             
    490490                /* Update zone information. */
    491491                zone->free_count += size;
Note: See TracChangeset for help on using the changeset viewer.