lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <10c1b339-b352-7643-7adf-d82c941c7d2c@redhat.com>
Date:   Thu, 1 Oct 2020 14:27:20 +0200
From:   David Hildenbrand <david@...hat.com>
To:     Hui Su <sh_def@....com>, lizefan@...wei.com, tj@...nel.org,
        hannes@...xchg.org, akpm@...ux-foundation.org,
        cgroups@...r.kernel.org, linux-kernel@...r.kernel.org,
        linux-mm@...ck.org
Subject: Re: [PATCH] mm: fix some comments in page_alloc.c and mempolicy.c

On 25.09.20 18:06, Hui Su wrote:
> 1. the cpuset.c has been moved from kernel/cpuset.c to
> kernel/cgroup/cpuset.c long time ago, but the comment is stale,
> so we update it.
> 2. get_page_from_freelist() may alloc many pages according to
> order, we may use pages for better.
> 
> Signed-off-by: Hui Su <sh_def@....com>
> ---
>  kernel/cgroup/cpuset.c | 2 +-
>  mm/mempolicy.c         | 2 +-
>  mm/page_alloc.c        | 4 ++--
>  3 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c
> index 642415b8c3c9..1d3011c1aab6 100644
> --- a/kernel/cgroup/cpuset.c
> +++ b/kernel/cgroup/cpuset.c
> @@ -1,5 +1,5 @@
>  /*
> - *  kernel/cpuset.c
> + *  kernel/cgroup/cpuset.c
>   *
>   *  Processor and Memory placement constraints for sets of tasks.
>   *
> diff --git a/mm/mempolicy.c b/mm/mempolicy.c
> index eddbe4e56c73..ac59b049b16c 100644
> --- a/mm/mempolicy.c
> +++ b/mm/mempolicy.c
> @@ -2295,7 +2295,7 @@ int vma_dup_policy(struct vm_area_struct *src, struct vm_area_struct *dst)
>   * rebinds the mempolicy its copying by calling mpol_rebind_policy()
>   * with the mems_allowed returned by cpuset_mems_allowed().  This
>   * keeps mempolicies cpuset relative after its cpuset moves.  See
> - * further kernel/cpuset.c update_nodemask().
> + * further kernel/cgroup/cpuset.c update_nodemask().
>   *
>   * current's mempolicy may be rebinded by the other task(the task that changes
>   * cpuset's mems), so we needn't do rebind work for current task.
> diff --git a/mm/page_alloc.c b/mm/page_alloc.c
> index fab5e97dc9ca..1e3c7493e1cb 100644
> --- a/mm/page_alloc.c
> +++ b/mm/page_alloc.c
> @@ -3709,7 +3709,7 @@ static inline unsigned int current_alloc_flags(gfp_t gfp_mask,
>  
>  /*
>   * get_page_from_freelist goes through the zonelist trying to allocate
> - * a page.
> + * pages.

"a page" is correct here - it's a single page of the given order (which
might be composed out of various order-0 pages, but that's not the point).


-- 
Thanks,

David / dhildenb

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ