[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <583D0DB4.5060201@linux.vnet.ibm.com>
Date: Tue, 29 Nov 2016 10:40:12 +0530
From: Anshuman Khandual <khandual@...ux.vnet.ibm.com>
To: Zi Yan <zi.yan@...rutgers.edu>,
Balbir Singh <bsingharora@...il.com>
Cc: linux-kernel@...r.kernel.org, linux-mm@...ck.org,
akpm@...ux-foundation.org, minchan@...nel.org, vbabka@...e.cz,
mgorman@...hsingularity.net, kirill.shutemov@...ux.intel.com,
n-horiguchi@...jp.nec.com
Subject: Re: [PATCH 1/5] mm: migrate: Add mode parameter to support additional
page copy routines.
On 11/28/2016 08:43 PM, Zi Yan wrote:
> On 24 Nov 2016, at 18:56, Balbir Singh wrote:
>
>> > On 23/11/16 03:25, Zi Yan wrote:
>>> >> From: Zi Yan <zi.yan@...rutgers.edu>
>>> >>
>>> >> From: Zi Yan <ziy@...dia.com>
>>> >>
>>> >> migrate_page_copy() and copy_huge_page() are affected.
>>> >>
>>> >> Signed-off-by: Zi Yan <ziy@...dia.com>
>>> >> Signed-off-by: Zi Yan <zi.yan@...rutgers.edu>
>>> >> ---
>>> >> fs/aio.c | 2 +-
>>> >> fs/hugetlbfs/inode.c | 2 +-
>>> >> fs/ubifs/file.c | 2 +-
>>> >> include/linux/migrate.h | 6 ++++--
>>> >> mm/migrate.c | 14 ++++++++------
>>> >> 5 files changed, 15 insertions(+), 11 deletions(-)
>>> >>
>>> >> diff --git a/fs/aio.c b/fs/aio.c
>>> >> index 428484f..a67c764 100644
>>> >> --- a/fs/aio.c
>>> >> +++ b/fs/aio.c
>>> >> @@ -418,7 +418,7 @@ static int aio_migratepage(struct address_space *mapping, struct page *new,
>>> >> * events from being lost.
>>> >> */
>>> >> spin_lock_irqsave(&ctx->completion_lock, flags);
>>> >> - migrate_page_copy(new, old);
>>> >> + migrate_page_copy(new, old, 0);
>> >
>> > Can we have a useful enum instead of 0, its harder to read and understand
>> > 0
> How about MIGRATE_SINGLETHREAD = 0 ?
Right, should be an enum declaration for all kind of single page
copy process. Now we have just two. We dont have to mention
number of threads in the multi threaded one.
MIGRATE_SINGLETHREAD
MIGRATE_MULTITHREAD
Powered by blists - more mailing lists