[Concept,07/26] linux: Update jbd2.h includes

Message ID 20251222115639.700578-8-sjg@u-boot.org
State New
Headers
Series fs: ext4l: Add support for mounting ext4 filesystems (part G) |

Commit Message

Simon Glass Dec. 22, 2025, 11:56 a.m. UTC
  From: Simon Glass <simon.glass@canonical.com>

Add includes for the new header files (blk_types.h, jiffies.h,
percpu_counter.h, spinlock.h) to jbd2.h so it can be included
standalone.

Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
---

 include/linux/jbd2.h | 5 +++++
 1 file changed, 5 insertions(+)
  

Patch

diff --git a/include/linux/jbd2.h b/include/linux/jbd2.h
index 35b68ffc0fd..41725fb42af 100644
--- a/include/linux/jbd2.h
+++ b/include/linux/jbd2.h
@@ -20,14 +20,18 @@ 
 #else
 
 #include <linux/types.h>
+#include <linux/blk_types.h>
 #include <linux/buffer_head.h>
 #include <linux/journal-head.h>
 #include <linux/stddef.h>
 #include <linux/mutex.h>
 #include <linux/timer.h>
 #include <linux/slab.h>
+#include <linux/spinlock.h>
 #include <linux/bit_spinlock.h>
 #include <linux/blkdev.h>
+#include <linux/jiffies.h>
+#include <linux/percpu_counter.h>
 #include <linux/crc32c.h>
 #include <linux/wait.h>
 #include <linux/init.h>
@@ -70,6 +74,7 @@  void __jbd2_debug(int level, const char *file, const char *func,
 
 extern void *jbd2_alloc(size_t size, gfp_t flags);
 extern void jbd2_free(void *ptr, size_t size);
+extern int jbd2_journal_init_global(void);
 
 #define JBD2_MIN_JOURNAL_BLOCKS 1024
 #define JBD2_DEFAULT_FAST_COMMIT_BLOCKS 256