Re: [PATCH 1/2] mm: use is_migrate_highatomic() to simplify the code

2017-03-08 Thread Michal Hocko
On Mon 06-03-17 12:43:18, Andrew Morton wrote: > On Mon, 6 Mar 2017 14:38:33 +0100 Michal Hocko wrote: > > > On Fri 03-03-17 15:06:19, Andrew Morton wrote: > > > On Fri, 3 Mar 2017 14:18:08 +0100 Michal Hocko wrote: > > > > > > > On Fri 03-03-17 19:10:13, Xishi Qiu wrote: > > > > > Introduce tw

Re: [PATCH 1/2] mm: use is_migrate_highatomic() to simplify the code

2017-03-06 Thread Andrew Morton
On Mon, 6 Mar 2017 14:38:33 +0100 Michal Hocko wrote: > On Fri 03-03-17 15:06:19, Andrew Morton wrote: > > On Fri, 3 Mar 2017 14:18:08 +0100 Michal Hocko wrote: > > > > > On Fri 03-03-17 19:10:13, Xishi Qiu wrote: > > > > Introduce two helpers, is_migrate_highatomic() and > > > > is_migrate_hi

Re: [PATCH 1/2] mm: use is_migrate_highatomic() to simplify the code

2017-03-06 Thread Michal Hocko
On Fri 03-03-17 15:06:19, Andrew Morton wrote: > On Fri, 3 Mar 2017 14:18:08 +0100 Michal Hocko wrote: > > > On Fri 03-03-17 19:10:13, Xishi Qiu wrote: > > > Introduce two helpers, is_migrate_highatomic() and > > > is_migrate_highatomic_page(). > > > Simplify the code, no functional changes. > >

Re: [PATCH 1/2] mm: use is_migrate_highatomic() to simplify the code

2017-03-03 Thread Andrew Morton
On Fri, 3 Mar 2017 14:18:08 +0100 Michal Hocko wrote: > On Fri 03-03-17 19:10:13, Xishi Qiu wrote: > > Introduce two helpers, is_migrate_highatomic() and > > is_migrate_highatomic_page(). > > Simplify the code, no functional changes. > > static inline helpers would be nicer than macros Always.

Re: [PATCH 1/2] mm: use is_migrate_highatomic() to simplify the code

2017-03-03 Thread Michal Hocko
On Fri 03-03-17 19:10:13, Xishi Qiu wrote: > Introduce two helpers, is_migrate_highatomic() and > is_migrate_highatomic_page(). > Simplify the code, no functional changes. static inline helpers would be nicer than macros > Signed-off-by: Xishi Qiu OK this fits with other MIGRATE_$FOO types Ac