[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <070501d10d42$2ec35190$8c49f4b0$@alibaba-inc.com>
Date: Fri, 23 Oct 2015 11:23:26 +0800
From: "Hillf Danton" <hillf.zj@...baba-inc.com>
To: "'Jerome Glisse'" <jglisse@...hat.com>
Cc: <linux-mm@...ck.org>,
"'linux-kernel'" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v11 02/14] HMM: add special swap filetype for memory migrated to device v2.
> > > + if (cnt_hmm_entry) {
> > > + int ret;
> > > +
> > > + ret = hmm_mm_fork(src_mm, dst_mm, dst_vma,
> > > + dst_pmd, start, end);
> >
> > Given start, s/end/addr/, no?
>
> No, end is the right upper limit here.
>
Then in the first loop, hmm_mm_fork is invoked for
the _entire_ range, from input addr to end.
In subsequent loops(if necessary), start is updated to
addr, and hmm_mm_fork is also invoked for remaining
range, from start to end.
Is the above overlap in range making sense?
Hillf
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists