From patchwork Sun Dec 21 21:20:08 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 71 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766352040; bh=VMzOrZhJNmXD0/HZYLQORItRiQeerW3EEEbtoK97qNc=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=R0agcbWyRRI60rS8iL2Rsc7Zyw9ST9i1Ygk3rQhwa61FlHhmEXei+M76kFQYNTqSM vFFcC2tHz5geohuiVphkRu6oIp0zPfGWir3m6fXACyJYrfuljx81epbeAFpsbhpXbw n03rn0aSaESdTitl1XGhiB9EsYss8HmCYHt4Zhns/Bf8PAn8TkguemQ0a2TWTMc2/n T4Ttk7N5LYemLUX6tJiW8L4sDQpgUZlMtQrDEP5zv91ErDjXqyET1s7xSbxoio29AV oyKs/HjKg0awDj0au3vfAcC6EyYv74D712M5slYyfXlcYPqdwrl+tGni8NWrIPmbOE vXIuF9Mlr5QTw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 365B064CF3 for ; Sun, 21 Dec 2025 14:20:40 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id icZFGWcc8z_9 for ; Sun, 21 Dec 2025 14:20:40 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766352040; bh=VMzOrZhJNmXD0/HZYLQORItRiQeerW3EEEbtoK97qNc=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=R0agcbWyRRI60rS8iL2Rsc7Zyw9ST9i1Ygk3rQhwa61FlHhmEXei+M76kFQYNTqSM vFFcC2tHz5geohuiVphkRu6oIp0zPfGWir3m6fXACyJYrfuljx81epbeAFpsbhpXbw n03rn0aSaESdTitl1XGhiB9EsYss8HmCYHt4Zhns/Bf8PAn8TkguemQ0a2TWTMc2/n T4Ttk7N5LYemLUX6tJiW8L4sDQpgUZlMtQrDEP5zv91ErDjXqyET1s7xSbxoio29AV oyKs/HjKg0awDj0au3vfAcC6EyYv74D712M5slYyfXlcYPqdwrl+tGni8NWrIPmbOE vXIuF9Mlr5QTw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 20C5264CCF for ; Sun, 21 Dec 2025 14:20:40 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766352037; bh=HXC0gWCXz6qhPsudTISqu3iK/ubQBoeFSF78sBoossQ=; h=From:To:Cc:Subject:Date:From; b=KfqgK5za+FXSooOhWDl9LPyaiTZuwCEAlH9Yc8hLN98o0TuNT01vlkUQkb9/fy3OK RdSUbEm7Wdy4fwbthLNY4Q0T28cyioPwK36vjdm6Y6RgqsX6MpJLW5wQdNhhRZc72w RkL28DIB5O4KtQ89gztFjIi5nK1fgs+3q8ygOIMhY731k5avonETwtGOSJNJIgHFOR Zr+L3jI3AkVJ8cxp41wQKQe1G6upE6YGwPWr9yV5ykGm1HliDf1jpLtyCxeSCAtQTi sI88T0ZqCpeFxGMpjRi3bjZCPcUN7ySZ9g8MJDq5EfLXhWDoI7LdfCZlGeZufm17i0 zC05fFgEtTSSw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 5D65464CDE; Sun, 21 Dec 2025 14:20:37 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id BsuyjJFUyGyO; Sun, 21 Dec 2025 14:20:37 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766352033; bh=WOnSVhkciIfz5GjYhVjLqLHDETGhXguT60wHD954g8Q=; h=From:To:Cc:Subject:Date:From; b=iJZaeH6SKxJBVLAr9zk8DsyUw/uXlFMYDoO7AA/LKmEdMHKIQQ6W/HZ38PPRYeLdt ZDNkZwOPNiI0ZICQiJTcT1K5sv71L4FqTsNi7Jju1fk5GoF5qsf7hx59MCHzElUGGz 3e4B4G+GQv80pUFenqAo0fp7UMX1E47ix6LdwHxjqi0K+zS2LSqTN2Ki1smxP6qmFI 0aB2mqNakBFweFAKpg4mzg8xxFgPWxSMiqQ17gYLZzIuKLR17ha2F6zYLzcyO2qzmd UQgwFnjNHuXBg9AM3Bgqzqr71BSG4V5M9AoR6q5+q2wjPHVvXGf3jFb4K/3hJZWJIj FMNd9S4lShuOA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id C5C1264CBD; Sun, 21 Dec 2025 14:20:32 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Sun, 21 Dec 2025 14:20:08 -0700 Message-ID: <20251221212028.857348-1-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: 6CFHSIKF2ZVLLY6JZOEC7ZU23W3TOQJJ X-Message-ID-Hash: 6CFHSIKF2ZVLLY6JZOEC7ZU23W3TOQJJ X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 00/15] ext4l: Add jbd2 and remaining ext4l files to build (part F) List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass This series continues the ext4l port by adding the jbd2 journaling layer and remaining ext4l files to the build. Changes: - Fix pr_emerg() macro to use log_emer() - Import jbd2 source files from Linux 6.18 - Add jbd2 files to build: checkpoint, commit, journal, recovery, revoke, transaction - Add ext4l files to build: migrate, mmp, move_extent, resize, fsmap Each file addition includes the necessary stubs in ext4_uboot.h and removes redundant stubs from stub.c as real implementations become available. Simon Glass (15): printk: Fix pr_emerg to use log_emer jbd2: Add checkpoint.c and revoke.c from Linux jbd2: Add recovery.c and commit.c from Linux jbd2: Add transaction.c from Linux jbd2: Add journal.c from Linux jbd2: Add checkpoint.c to the build jbd2: Add journal.c to the build jbd2: Add recovery.c to the build jbd2: Add revoke.c to the build jbd2: Add transaction.c to the build ext4l: Add migrate.c to the build ext4l: Add mmp.c to the build ext4l: Add move_extent.c to the build ext4l: Add resize.c to the build ext4l: Add fsmap.c to the build fs/Makefile | 1 + fs/ext4l/Makefile | 6 +- fs/ext4l/ext4_uboot.h | 258 +++- fs/ext4l/fsmap.c | 5 +- fs/ext4l/migrate.c | 2 +- fs/ext4l/mmp.c | 6 +- fs/ext4l/move_extent.c | 5 +- fs/ext4l/resize.c | 6 +- fs/ext4l/stub.c | 314 ++-- fs/jbd2/Makefile | 6 + fs/jbd2/checkpoint.c | 713 +++++++++ fs/jbd2/commit.c | 1147 +++++++++++++++ fs/jbd2/journal.c | 3136 ++++++++++++++++++++++++++++++++++++++++ fs/jbd2/recovery.c | 987 +++++++++++++ fs/jbd2/revoke.c | 731 ++++++++++ fs/jbd2/transaction.c | 2738 +++++++++++++++++++++++++++++++++++ include/linux/fs.h | 1 + include/linux/printk.h | 2 +- 18 files changed, 9813 insertions(+), 251 deletions(-) create mode 100644 fs/jbd2/Makefile create mode 100644 fs/jbd2/checkpoint.c create mode 100644 fs/jbd2/commit.c create mode 100644 fs/jbd2/journal.c create mode 100644 fs/jbd2/recovery.c create mode 100644 fs/jbd2/revoke.c create mode 100644 fs/jbd2/transaction.c