diff options
author | Uladzislau Rezki (Sony) <urezki@gmail.com> | 2024-01-24 19:09:20 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-02-23 17:48:21 -0800 |
commit | 8be4d46e12af32342569840d958272dbb3be3f4c (patch) | |
tree | d639fc835289817ffb348143e3e0119a70d53b47 /arch/x86/include/asm/crash_reserve.h | |
parent | 15e02a39fb6b43f37100563c6a246252d5d1e6da (diff) | |
download | lwn-8be4d46e12af32342569840d958272dbb3be3f4c.tar.gz lwn-8be4d46e12af32342569840d958272dbb3be3f4c.zip |
mm: vmalloc: refactor vmalloc_dump_obj() function
This patch tends to simplify the function in question, by removing an
extra stack "objp" variable, returning back to an early exit approach if
spin_trylock() fails or VA was not found.
Link: https://lkml.kernel.org/r/20240124180920.50725-2-urezki@gmail.com
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Reviewed-by: Lorenzo Stoakes <lstoakes@gmail.com>
Cc: Baoquan He <bhe@redhat.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Oleksiy Avramchenko <oleksiy.avramchenko@sony.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'arch/x86/include/asm/crash_reserve.h')
0 files changed, 0 insertions, 0 deletions