mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
mempolicy: rename mpol_copy to mpol_dup
This patch renames mpol_copy() to mpol_dup() because, well, that's what it does. Like, e.g., strdup() for strings, mpol_dup() takes a pointer to an existing mempolicy, allocates a new one and copies the contents. In a later patch, I want to use the name mpol_copy() to copy the contents from one mempolicy to another like, e.g., strcpy() does for strings. Signed-off-by: Lee Schermerhorn <[email protected]> Cc: Christoph Lameter <[email protected]> Cc: David Rientjes <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Andi Kleen <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
f0be3d32b0
commit
846a16bf0f
5 changed files with 16 additions and 16 deletions
|
|
@ -1566,15 +1566,15 @@ struct page *alloc_pages_current(gfp_t gfp, unsigned order)
|
|||
EXPORT_SYMBOL(alloc_pages_current);
|
||||
|
||||
/*
|
||||
* If mpol_copy() sees current->cpuset == cpuset_being_rebound, then it
|
||||
* If mpol_dup() sees current->cpuset == cpuset_being_rebound, then it
|
||||
* 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().
|
||||
*/
|
||||
|
||||
/* Slow path of a mempolicy copy */
|
||||
struct mempolicy *__mpol_copy(struct mempolicy *old)
|
||||
/* Slow path of a mempolicy duplicate */
|
||||
struct mempolicy *__mpol_dup(struct mempolicy *old)
|
||||
{
|
||||
struct mempolicy *new = kmem_cache_alloc(policy_cache, GFP_KERNEL);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue