From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 85B0A337BB5 for ; Sun, 8 Feb 2026 08:14:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770538448; cv=none; b=ItyO1yVewdjH76Ta2FKYj2aBZqqz0LqSYRX30kEwVa0mO7SyYxTAROW+Qu4kX8utJncfBURIlA/NLWxuAWAuyyWom46Zqf4b7hT7Iw0oKOs0JhuS9Oz9UKmqFQWjqdCi0GZHphSjtUVSG7XYheckYw1Hf3IJkiQnMNq//JP1VFQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770538448; c=relaxed/simple; bh=cw0dihvEcEUEKWodyl30V3RGQKNHceOD6rgw+Az2BrM=; h=Date:To:From:Subject:Message-Id; b=nerpg6gK2+pRPoAyMAjG6Pi8OOO4Y404R484We9cfuYQ0SNL/kcrG+4HBhpRA9zi//bNo5U+B5UUCskHhjIfEqGCmSl5/zRmJDUNr0TXxR7p+tbwdkR4VNkse3vrQnjpmJVY5aWxu3iGq3KurYf3R0e3nDJViz+Zytng/yEceeA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=ZnjCbJlr; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="ZnjCbJlr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51871C4CEF7; Sun, 8 Feb 2026 08:14:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1770538448; bh=cw0dihvEcEUEKWodyl30V3RGQKNHceOD6rgw+Az2BrM=; h=Date:To:From:Subject:From; b=ZnjCbJlrErv9Mal5tVx+Xpyfa9Wauk4lZTRTW8oga+QRbEQ0B218e1GylJd4u6vvn gLmzSTN/893jR+FS0Wf7Us5xqHuBB7Kvt2MpCdXcT0DIzcJM65gXK9eUAymtantB7e udCJpmbjHnXcHHFY/GYs0g9jwkgAwzIA8fCwcR1A= Date: Sun, 08 Feb 2026 00:14:07 -0800 To: mm-commits@vger.kernel.org,tamird@gmail.com,skhawaja@google.com,rppt@kernel.org,rientjes@google.com,pratyush@kernel.org,pmladek@suse.com,kees@kernel.org,graf@amazon.com,dmatlack@google.com,davidgow@google.com,corbet@lwn.net,pasha.tatashin@soleen.com,akpm@linux-foundation.org From: Andrew Morton Subject: [merged mm-nonmm-stable] liveupdate-luo_file-use-private-list.patch removed from -mm tree Message-Id: <20260208081408.51871C4CEF7@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The quilt patch titled Subject: liveupdate: luo_file: Use private list has been removed from the -mm tree. Its filename was liveupdate-luo_file-use-private-list.patch This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm ------------------------------------------------------ From: Pasha Tatashin Subject: liveupdate: luo_file: Use private list Date: Thu, 18 Dec 2025 10:57:50 -0500 Switch LUO to use the private list iterators. Link: https://lkml.kernel.org/r/20251218155752.3045808-4-pasha.tatashin@soleen.com Signed-off-by: Pasha Tatashin Cc: Alexander Graf Cc: David Gow Cc: David Matlack Cc: David Rientjes Cc: Jonathan Corbet Cc: Kees Cook Cc: Mike Rapoport Cc: Petr Mladek Cc: Pratyush Yadav Cc: Samiullah Khawaja Cc: Tamir Duberstein Signed-off-by: Andrew Morton --- kernel/liveupdate/luo_file.c | 7 ++++--- kernel/liveupdate/luo_internal.h | 7 ------- 2 files changed, 4 insertions(+), 10 deletions(-) --- a/kernel/liveupdate/luo_file.c~liveupdate-luo_file-use-private-list +++ a/kernel/liveupdate/luo_file.c @@ -104,6 +104,7 @@ #include #include #include +#include #include #include #include @@ -273,7 +274,7 @@ int luo_preserve_file(struct luo_file_se goto err_fput; err = -ENOENT; - luo_list_for_each_private(fh, &luo_file_handler_list, list) { + list_private_for_each_entry(fh, &luo_file_handler_list, list) { if (fh->ops->can_preserve(fh, file)) { err = 0; break; @@ -760,7 +761,7 @@ int luo_file_deserialize(struct luo_file bool handler_found = false; struct luo_file *luo_file; - luo_list_for_each_private(fh, &luo_file_handler_list, list) { + list_private_for_each_entry(fh, &luo_file_handler_list, list) { if (!strcmp(fh->compatible, file_ser[i].compatible)) { handler_found = true; break; @@ -835,7 +836,7 @@ int liveupdate_register_file_handler(str return -EBUSY; /* Check for duplicate compatible strings */ - luo_list_for_each_private(fh_iter, &luo_file_handler_list, list) { + list_private_for_each_entry(fh_iter, &luo_file_handler_list, list) { if (!strcmp(fh_iter->compatible, fh->compatible)) { pr_err("File handler registration failed: Compatible string '%s' already registered.\n", fh->compatible); --- a/kernel/liveupdate/luo_internal.h~liveupdate-luo_file-use-private-list +++ a/kernel/liveupdate/luo_internal.h @@ -40,13 +40,6 @@ static inline int luo_ucmd_respond(struc */ #define luo_restore_fail(__fmt, ...) panic(__fmt, ##__VA_ARGS__) -/* Mimics list_for_each_entry() but for private list head entries */ -#define luo_list_for_each_private(pos, head, member) \ - for (struct list_head *__iter = (head)->next; \ - __iter != (head) && \ - ({ pos = container_of(__iter, typeof(*(pos)), member); 1; }); \ - __iter = __iter->next) - /** * struct luo_file_set - A set of files that belong to the same sessions. * @files_list: An ordered list of files associated with this session, it is _ Patches currently in -mm which might be from pasha.tatashin@soleen.com are