diff options
author | Al Viro | 2017-11-19 17:32:05 +0100 |
---|---|---|
committer | Al Viro | 2017-12-03 02:29:13 +0100 |
commit | e716712f83b635e62d5fb66c1375524ef2152cc0 (patch) | |
tree | 62ed708c2daed2cdf957b4719c8a2666b1e306e8 /arch/m32r/include/asm/linkage.h | |
parent | get_user_pages_unlocked(): pass true to __get_user_pages_locked() notify_drop (diff) | |
download | kernel-qcow2-linux-e716712f83b635e62d5fb66c1375524ef2152cc0.tar.gz kernel-qcow2-linux-e716712f83b635e62d5fb66c1375524ef2152cc0.tar.xz kernel-qcow2-linux-e716712f83b635e62d5fb66c1375524ef2152cc0.zip |
__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>
Diffstat (limited to 'arch/m32r/include/asm/linkage.h')
0 files changed, 0 insertions, 0 deletions