]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: remove lock validation check for MADV_FREE
authorMinchan Kim <minchan@kernel.org>
Wed, 21 Oct 2015 22:03:46 +0000 (09:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Oct 2015 22:03:46 +0000 (09:03 +1100)
commit4e608926b0dac9a9e5a23f9c2a236c7c7588a885
tree756ac4b12bfb03c77f7a433a0b83f848b190a25f
parente84c000aea37200839114ba4e3a031a5275dc28b
mm: remove lock validation check for MADV_FREE

Currently, madvise_free_pte_range is called only madvise path which
already holds an mmap_sem so it's pointless to add the lock validation
check.

Signed-off-by: Minchan Kim <minchan@kernel.org>
Cc: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/madvise.c