linux: Update jbd2.h includes

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>
This commit is contained in:
Simon Glass
2025-12-21 12:46:04 -07:00
parent ecbce56f94
commit 78059b2649

View File

@@ -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