[Concept,00/15] ext4l: Add jbd2 and remaining ext4l files to build (part F)

Message ID 20251221212028.857348-1-sjg@u-boot.org
Headers
Series ext4l: Add jbd2 and remaining ext4l files to build (part F) |

Message

Simon Glass Dec. 21, 2025, 9:20 p.m. UTC
  From: Simon Glass <simon.glass@canonical.com>

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