]> git.baikalelectronics.ru Git - kernel.git/commit
__get_user_pages_locked(): get rid of notify_drop argument
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 19 Nov 2017 16:32:05 +0000 (11:32 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 3 Dec 2017 01:29:13 +0000 (20:29 -0500)
commitf5b12382cb81d40f38d408b5ae8b8e90353574f3
tree62ed708c2daed2cdf957b4719c8a2666b1e306e8
parentb2a831d4e81c4f4676d14e6ddd2f00abda0b482e
__get_user_pages_locked(): get rid of notify_drop argument

The only caller that doesn't pass true in it is get_user_pages() and
it passes NULL in locked.  The only place where we check it is
if (notify_locked && lock_dropped && *locked)
and lock_dropped can become true only if we have locked != NULL.
In other words, the second part of condition will be false when
called by get_user_pages().

Just get rid of the argument and turn the condition into
if (lock_dropped && *locked)

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
mm/gup.c