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


Ignore:
Timestamp:
2018-02-28T17:52:03Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3061bc1
Parents:
df6ded8
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
Message:

style: Remove trailing whitespace on non-empty lines, in certain file types.

Command used: tools/srepl '\([^[:space:]]\)\s\+$' '\1' -- *.c *.h *.py *.sh *.s *.S *.ag

File:
1 edited

Legend:

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

    rdf6ded8 r1b20da0  
    3939 *
    4040 * with the following exceptions:
    41  * @li empty slabs are deallocated immediately 
     41 * @li empty slabs are deallocated immediately
    4242 *     (in Linux they are kept in linked list, in Solaris ???)
    4343 * @li empty magazines are deallocated when not needed
     
    5252 * good SMP scaling.
    5353 *
    54  * When a new object is being allocated, it is first checked, if it is 
     54 * When a new object is being allocated, it is first checked, if it is
    5555 * available in a CPU-bound magazine. If it is not found there, it is
    5656 * allocated from a CPU-shared slab - if a partially full one is found,
    57  * it is used, otherwise a new one is allocated. 
     57 * it is used, otherwise a new one is allocated.
    5858 *
    5959 * When an object is being deallocated, it is put to a CPU-bound magazine.
    60  * If there is no such magazine, a new one is allocated (if this fails, 
     60 * If there is no such magazine, a new one is allocated (if this fails,
    6161 * the object is deallocated into slab). If the magazine is full, it is
    6262 * put into cpu-shared list of magazines and a new one is allocated.
     
    7979 * the frame allocator fails to allocate a frame, it calls slab_reclaim().
    8080 * It tries 'light reclaim' first, then brutal reclaim. The light reclaim
    81  * releases slabs from cpu-shared magazine-list, until at least 1 slab 
     81 * releases slabs from cpu-shared magazine-list, until at least 1 slab
    8282 * is deallocated in each cache (this algorithm should probably change).
    8383 * The brutal reclaim removes all cached objects, even from CPU-bound
     
    9090 * to add cpu-cached magazine cache (which would allocate it's magazines
    9191 * from non-cpu-cached mag. cache). This would provide a nice per-cpu
    92  * buffer. The other possibility is to use the per-cache 
     92 * buffer. The other possibility is to use the per-cache
    9393 * 'empty-magazine-list', which decreases competing for 1 per-system
    9494 * magazine cache.
     
    660660}
    661661
    662 /** Create slab cache 
     662/** Create slab cache
    663663 *
    664664 */
Note: See TracChangeset for help on using the changeset viewer.