函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:mm\swapfile.c Create Date:2022-07-27 16:47:14
首页 Copyright©Brick

689
690
691
692
693
694
695
696
697
698
699
static void add_to_avail_list(struct swap_info_struct *p)
{
    int nid;
 
    spin_lock(&swap_avail_lock);
    for_each_node(nid) {
        WARN_ON(!plist_node_empty(&p->avail_lists[nid]));
        plist_add(&p->avail_lists[nid], &swap_avail_heads[nid]);
    }
    spin_unlock(&swap_avail_lock);
}