Commit 0ce8f233 authored by Baokun Li's avatar Baokun Li
Browse files

jbd2: kabi: KABI reservation for jbd2

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I918VT



----------------------------------------------------------------------

    structure                size reserves reserved

    jbd2_inode               64      2      80
    jbd2_journal_handle      56      1      64
    transaction_chp_stats_s  24      2      40
    transaction_s            208     4(+2)  256
    journal_s                1488    6      1536
    jbd2_buffer_trigger_type 16      2      32
    journal_head             112     2      128

Signed-off-by: default avatarBaokun Li <libaokun1@huawei.com>
parent fa30d756
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
@@ -443,6 +443,9 @@ struct jbd2_inode {
	 * ends. [j_list_lock]
	 */
	loff_t i_dirty_end;

	KABI_RESERVE(1)
	KABI_RESERVE(2)
};

struct jbd2_revoke_table_s;
@@ -501,6 +504,8 @@ struct jbd2_journal_handle
	unsigned int		h_requested_credits;

	unsigned int		saved_alloc_context;

	KABI_RESERVE(1)
};


@@ -512,6 +517,9 @@ struct transaction_chp_stats_s {
	__u32			cs_forced_to_close;
	__u32			cs_written;
	__u32			cs_dropped;

	KABI_RESERVE(1)
	KABI_RESERVE(2)
};

/* The transaction_t type is the guts of the journaling mechanism.  It
@@ -706,6 +714,11 @@ struct transaction_s
	 * structures associated with the transaction
	 */
	struct list_head	t_private_list;

	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
	KABI_RESERVE(4)
};

struct transaction_run_stats_s {
@@ -1291,6 +1304,13 @@ struct journal_s
	 * VFS bmap function.
	 */
	int (*j_bmap)(struct journal_s *journal, sector_t *block);

	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
	KABI_RESERVE(4)
	KABI_RESERVE(5)
	KABI_RESERVE(6)
};

#define jbd2_might_wait_for_commit(j) \
@@ -1464,6 +1484,9 @@ struct jbd2_buffer_trigger_type {
	 */
	void (*t_abort)(struct jbd2_buffer_trigger_type *type,
			struct buffer_head *bh);

	KABI_RESERVE(1)
	KABI_RESERVE(2)
};

extern void jbd2_buffer_frozen_trigger(struct journal_head *jh,
+3 −0
Original line number Diff line number Diff line
@@ -109,6 +109,9 @@ struct journal_head {

	/* Trigger type for the committing transaction's frozen data */
	struct jbd2_buffer_trigger_type *b_frozen_triggers;

	KABI_RESERVE(1)
	KABI_RESERVE(2)
};

#endif		/* JOURNAL_HEAD_H_INCLUDED */