coccinelle: api: add vma_pages.cocci
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>
Thu, 21 May 2015 11:19:13 +0000 (19:19 +0800)
committerMichal Marek <mmarek@suse.cz>
Thu, 21 May 2015 11:19:13 +0000 (19:19 +0800)
commit4c8f20bb8e0ba6eecf62958bbf0502a2dc445ce6
tree7eac76954e0a70d555a8a75ebb13d7aef8b9d6d3
parent74de120d8096f72bdf95aba7234428c798d931cd
coccinelle: api: add vma_pages.cocci

This semantic patch replaces explicit computations of vma page count
with explicit function call.

Signed-off-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/coccinelle/api/vma_pages.cocci [new file with mode: 0644]