We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36b3db0 commit c4b7547Copy full SHA for c4b7547
kernel/events/core.c
@@ -5825,13 +5825,7 @@ static int perf_mmap(struct file *file, struct vm_area_struct *vma)
5825
5826
user_locked = atomic_long_read(&user->locked_vm) + user_extra;
5827
5828
- if (user_locked <= user_lock_limit) {
5829
- /* charge all to locked_vm */
5830
- } else if (atomic_long_read(&user->locked_vm) >= user_lock_limit) {
5831
- /* charge all to pinned_vm */
5832
- extra = user_extra;
5833
- user_extra = 0;
5834
- } else {
+ if (user_locked > user_lock_limit) {
5835
/*
5836
* charge locked_vm until it hits user_lock_limit;
5837
* charge the rest from pinned_vm
0 commit comments