提交 95618625 编写于 作者: Z Zhang Zekun 提交者: Wang Wensheng

mm/sharepool: Remove the leading double underlines for function name

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5XQS4
CVE: NA

----------------------------------------------

Renaming __insert_sp_area to insert_sp_area.
Renaming __find_sp_area_locked to find_sp_area_locked.

Fix this by renaming __insert_sp_area to insert_sp_area.
Signed-off-by: NZhang Zekun <zhangzekun11@huawei.com>
上级 c3c8461e
......@@ -1731,7 +1731,7 @@ int mg_sp_id_of_current(void)
EXPORT_SYMBOL_GPL(mg_sp_id_of_current);
/* the caller must hold sp_area_lock */
static void __insert_sp_area(struct sp_mapping *spm, struct sp_area *spa)
static void insert_sp_area(struct sp_mapping *spm, struct sp_area *spa)
{
struct rb_node **p = &spm->area_root.rb_node;
struct rb_node *parent = NULL;
......@@ -1902,7 +1902,7 @@ static struct sp_area *sp_alloc_area(unsigned long size, unsigned long flags,
spa->device_id = device_id;
spa_inc_usage(spa);
__insert_sp_area(mapping, spa);
insert_sp_area(mapping, spa);
mapping->free_area_cache = &spa->rb_node;
list_add_tail(&spa->link, &spg->spa_list);
......@@ -1917,7 +1917,7 @@ static struct sp_area *sp_alloc_area(unsigned long size, unsigned long flags,
}
/* the caller should hold sp_area_lock */
static struct sp_area *__find_sp_area_locked(struct sp_group *spg,
static struct sp_area *find_sp_area_locked(struct sp_group *spg,
unsigned long addr)
{
struct sp_mapping *spm = sp_mapping_find(spg, addr);
......@@ -1943,7 +1943,7 @@ static struct sp_area *get_sp_area(struct sp_group *spg, unsigned long addr)
struct sp_area *n;
spin_lock(&sp_area_lock);
n = __find_sp_area_locked(spg, addr);
n = find_sp_area_locked(spg, addr);
if (n)
atomic_inc(&n->use_count);
spin_unlock(&sp_area_lock);
......@@ -2038,7 +2038,7 @@ void sp_area_drop(struct vm_area_struct *vma)
* Considering a situation where task A and B are in the same spg.
* A is exiting and calling remove_vma() -> ... -> sp_area_drop().
* Concurrently, B is calling sp_free() to free the same spa.
* __find_sp_area_locked() and __sp_area_drop_locked() should be
* find_sp_area_locked() and __sp_area_drop_locked() should be
* an atomic operation.
*/
spin_lock(&sp_area_lock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册