[PATCH 3/4] mm: use mmget_not_zero() helper

2016-12-18 Thread Vegard Nossum
We already have the helper, we can convert the rest of the kernel mechanically using: git grep -l 'atomic_inc_not_zero.*mm_users' | xargs sed -i 's/atomic_inc_not_zero(&\(.*\)->mm_users)/mmget_not_zero\(\1\)/' This is needed for a later patch that hooks into the helper, but might be a

[PATCH 3/4] mm: use mmget_not_zero() helper

2016-12-18 Thread Vegard Nossum
We already have the helper, we can convert the rest of the kernel mechanically using: git grep -l 'atomic_inc_not_zero.*mm_users' | xargs sed -i 's/atomic_inc_not_zero(&\(.*\)->mm_users)/mmget_not_zero\(\1\)/' This is needed for a later patch that hooks into the helper, but might be a

[PATCH 3/4] mm: use mmget_not_zero() helper

2016-12-16 Thread Vegard Nossum
We already have the helper, we can convert the rest of the kernel mechanically using: git grep -l 'atomic_inc_not_zero.*mm_users' | xargs sed -i 's/atomic_inc_not_zero(&\(.*\)->mm_users)/mmget_not_zero\(\1\)/' This is needed for a later patch that hooks into the helper, but might be a

[PATCH 3/4] mm: use mmget_not_zero() helper

2016-12-16 Thread Vegard Nossum
We already have the helper, we can convert the rest of the kernel mechanically using: git grep -l 'atomic_inc_not_zero.*mm_users' | xargs sed -i 's/atomic_inc_not_zero(&\(.*\)->mm_users)/mmget_not_zero\(\1\)/' This is needed for a later patch that hooks into the helper, but might be a

Re: [PATCH 3/4] mm: use mmget_not_zero() helper

2016-12-16 Thread Michal Hocko
On Fri 16-12-16 09:22:01, Vegard Nossum wrote: > We already have the helper, we can convert the rest of the kernel > mechanically using: > > git grep -l 'atomic_inc_not_zero.*mm_users' | xargs sed -i > 's/atomic_inc_not_zero(&\(.*\)->mm_users)/mmget_not_zero\(\1\)/' > > This is needed for a

Re: [PATCH 3/4] mm: use mmget_not_zero() helper

2016-12-16 Thread Michal Hocko
On Fri 16-12-16 09:22:01, Vegard Nossum wrote: > We already have the helper, we can convert the rest of the kernel > mechanically using: > > git grep -l 'atomic_inc_not_zero.*mm_users' | xargs sed -i > 's/atomic_inc_not_zero(&\(.*\)->mm_users)/mmget_not_zero\(\1\)/' > > This is needed for a