speed up madvise_need_mmap_write() usage
authorJason Baron <jbaron@redhat.com>
Mon, 16 Jul 2007 06:38:21 +0000 (23:38 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 16 Jul 2007 16:05:36 +0000 (09:05 -0700)
commitf7977793240d836e60ff413e94e6914f08e10941
tree75955844a77b70c02aa44982d27ca17ceb702cf3
parent897e679b17460b52752a038af29db356fe1bd759
speed up madvise_need_mmap_write() usage

In the new madvise_need_mmap_write() call we can avoid an extra case
statement and function call as follows.

Signed-off-by: Jason Baron <jbaron@redhat.com>
Cc: Nishanth Aravamudan <nacc@us.ibm.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/madvise.c