Changeset f3272e98 in mainline for kernel/generic/src/mm/slab.c


Ignore:
Timestamp:
2006-10-22T17:42:49Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2191541
Parents:
78595d6
Message:

Indentation changes and coding style fixes in slab.c and slab.h.

File:
1 edited

Legend:

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

    r78595d6 rf3272e98  
    138138/** Slab descriptor */
    139139typedef struct {
    140         slab_cache_t *cache; /**< Pointer to parent cache */
    141         link_t link;       /* List of full/partial slabs */
    142         void *start;       /**< Start address of first available item */
    143         count_t available; /**< Count of available items in this slab */
    144         index_t nextavail; /**< The index of next available item */
     140        slab_cache_t *cache;    /**< Pointer to parent cache. */
     141        link_t link;            /**< List of full/partial slabs. */
     142        void *start;            /**< Start address of first available item. */
     143        count_t available;      /**< Count of available items in this slab. */
     144        index_t nextavail;      /**< The index of next available item. */
    145145}slab_t;
    146146
     
    290290                spinlock_lock(&cache->slablock);
    291291        } else {
    292                 slab = list_get_instance(cache->partial_slabs.next,
    293                                          slab_t,
    294                                          link);
     292                slab = list_get_instance(cache->partial_slabs.next, slab_t, link);
    295293                list_remove(&slab->link);
    296294        }
     
    299297        slab->available--;
    300298
    301         if (! slab->available)
     299        if (!slab->available)
    302300                list_prepend(&slab->link, &cache->full_slabs);
    303301        else
     
    900898        slab_t *slab;
    901899
    902         if (!obj) return;
     900        if (!obj)
     901                return;
    903902
    904903        slab = obj2slab(obj);
Note: See TracChangeset for help on using the changeset viewer.