Commit 8558dca9 authored by Peter Zijlstra's avatar Peter Zijlstra
Browse files

perf: Reflow to get rid of aux_success label



Mostly re-indent noise needed to get rid of that label.

Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: default avatarLorenzo Stoakes <lorenzo.stoakes@oracle.com>
Link: https://lore.kernel.org/r/20250812104019.362581570@infradead.org
parent b33a5156
Loading
Loading
Loading
Loading
+18 −19
Original line number Diff line number Diff line
@@ -7130,9 +7130,8 @@ static int perf_mmap(struct file *file, struct vm_area_struct *vma)
		if (rb_has_aux(rb)) {
			atomic_inc(&rb->aux_mmap_count);
			ret = 0;
			goto aux_success;
		}

		} else {
			if (!perf_mmap_calc_limits(vma, &user_extra, &extra)) {
				ret = -EPERM;
				atomic_dec(&rb->mmap_count);
@@ -7153,7 +7152,7 @@ static int perf_mmap(struct file *file, struct vm_area_struct *vma)

			atomic_set(&rb->aux_mmap_count, 1);
			rb->aux_mmap_locked = extra;
aux_success:
		}
		perf_mmap_account(vma, user_extra, extra);
		atomic_inc(&event->mmap_count);
	}