Re: [PATCH 02/21] mm: Use vmf->address instead of of vmf->virtual_address

2016-11-16 Thread Jan Kara
On Wed 16-11-16 14:32:48, Kirill A. Shutemov wrote: > On Wed, Nov 16, 2016 at 12:05:05PM +0100, Jan Kara wrote: > > On Wed 16-11-16 00:55:31, Kirill A. Shutemov wrote: > > > On Fri, Nov 04, 2016 at 05:24:58AM +0100, Jan Kara wrote: > > > > Every single user of vmf->virtual_address typed that entry

Re: [PATCH 02/21] mm: Use vmf->address instead of of vmf->virtual_address

2016-11-16 Thread Kirill A. Shutemov
On Wed, Nov 16, 2016 at 12:05:05PM +0100, Jan Kara wrote: > On Wed 16-11-16 00:55:31, Kirill A. Shutemov wrote: > > On Fri, Nov 04, 2016 at 05:24:58AM +0100, Jan Kara wrote: > > > Every single user of vmf->virtual_address typed that entry to unsigned > > > long before doing anything with it so the

Re: [PATCH 02/21] mm: Use vmf->address instead of of vmf->virtual_address

2016-11-15 Thread Kirill A. Shutemov
On Fri, Nov 04, 2016 at 05:24:58AM +0100, Jan Kara wrote: > Every single user of vmf->virtual_address typed that entry to unsigned > long before doing anything with it so the type of virtual_address does > not really provide us any additional safety. Just use masked > vmf->address which already

[PATCH 02/21] mm: Use vmf->address instead of of vmf->virtual_address

2016-11-03 Thread Jan Kara
Every single user of vmf->virtual_address typed that entry to unsigned long before doing anything with it so the type of virtual_address does not really provide us any additional safety. Just use masked vmf->address which already has the appropriate type. Signed-off-by: Jan Kara

Re: [PATCH 02/21] mm: Use vmf->address instead of of vmf->virtual_address

2016-11-03 Thread Jan Kara
On Wed 02-11-16 12:18:10, Hillf Danton wrote: > On Wednesday, November 02, 2016 6:36 AM Jan Kara wrote: > > diff --git a/include/linux/mm.h b/include/linux/mm.h > > index 8e8b76d11bb4..2a4ebe3c67c6 100644 > > --- a/include/linux/mm.h > > +++ b/include/linux/mm.h > > @@ -297,8 +297,6 @@ struct

Re: [PATCH 02/21] mm: Use vmf->address instead of of vmf->virtual_address

2016-11-01 Thread Hillf Danton
On Wednesday, November 02, 2016 6:36 AM Jan Kara wrote: > diff --git a/include/linux/mm.h b/include/linux/mm.h > index 8e8b76d11bb4..2a4ebe3c67c6 100644 > --- a/include/linux/mm.h > +++ b/include/linux/mm.h > @@ -297,8 +297,6 @@ struct vm_fault { > gfp_t gfp_mask; /* gfp mask