]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mm: MADV_FREE trivial clean up
authorMinchan Kim <minchan@kernel.org>
Wed, 21 Oct 2015 22:03:45 +0000 (09:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Oct 2015 22:03:45 +0000 (09:03 +1100)
commitb97d46de2ac990fe888116fc46d68226d7dee360
tree66ba4ea58b3c05b9cdf7008317350a2d9e2c1536
parent98c66f9cf30803396933d7ebdc93f0fade9d5b1c
mm: MADV_FREE trivial clean up

1. Page table waker already pass the vma it is processing
so we don't need to pass vma.

2. If page table entry is dirty in try_to_unmap_one, the dirtiness
should propagate to PG_dirty of the page. So, it's enough to check
only PageDirty without other pte dirty bit checking.

Signed-off-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/madvise.c
mm/rmap.c