Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1546620
| From | David Rientjes <rientjes@google.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/4] mm: add new mmgrab() helper |
| Date | 2016-12-22 23:10 +0100 |
| Message-ID | <sRjIK-6K5-7@gated-at.bofh.it> (permalink) |
| References | <sPIUW-7Lp-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Sun, 18 Dec 2016, Vegard Nossum wrote: > Apart from adding the helper function itself, the rest of the kernel is > converted mechanically using: > > git grep -l 'atomic_inc.*mm_count' | xargs sed -i 's/atomic_inc(&\(.*\)->mm_count);/mmgrab\(\1\);/' > git grep -l 'atomic_inc.*mm_count' | xargs sed -i 's/atomic_inc(&\(.*\)\.mm_count);/mmgrab\(\&\1\);/' > > This is needed for a later patch that hooks into the helper, but might be > a worthwhile cleanup on its own. > > (Michal Hocko provided most of the kerneldoc comment.) > > Cc: Andrew Morton <akpm@linux-foundation.org> > Acked-by: Michal Hocko <mhocko@suse.com> > Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com> Acked-by: David Rientjes <rientjes@google.com> for the series
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 1/4] mm: add new mmgrab() helper Vegard Nossum <vegard.nossum@oracle.com> - 2016-12-18 13:40 +0100 [PATCH 2/4] mm: add new mmget() helper Vegard Nossum <vegard.nossum@oracle.com> - 2016-12-18 13:40 +0100 Re: [PATCH 1/4] mm: add new mmgrab() helper Peter Zijlstra <peterz@infradead.org> - 2016-12-19 11:30 +0100 Re: [PATCH 1/4] mm: add new mmgrab() helper David Rientjes <rientjes@google.com> - 2016-12-22 23:10 +0100
csiph-web