+17
−16
Loading
mainline inclusion from mainline-v6.9-rc1 commit 8be4d46e12af32342569840d958272dbb3be3f4c category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I9CHG1 CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8be4d46e12af32342569840d958272dbb3be3f4c ------------------------------------------------- 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> (cherry picked from commit 8be4d46e12af32342569840d958272dbb3be3f4c) Signed-off-by:
Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by:
ZhangPeng <zhangpeng362@huawei.com>