
hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IBEQJ3 -------------------------------- Fix the broken KABI by splitting the unsigned short frozen field into two unsigned char fields using KABI_REPLACE2(). Fixes: 8cb6859cb789 ("[Backport] fs: fix a hungtask problem when freeze/unfreeze fs") Signed-off-by: Baokun Li <libaokun1@huawei.com> --- include/linux/fs.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/linux/fs.h b/include/linux/fs.h index 8c0cdb73a838..78a064db2de3 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1224,8 +1224,9 @@ enum { #define SB_FREEZE_LEVELS (SB_FREEZE_COMPLETE - 1) struct sb_writers { - unsigned short frozen; /* Is sb frozen? */ - unsigned short frozen_ro; /* Was sb read-only + KABI_REPLACE2(unsigned short frozen, + unsigned char frozen, /* Is sb frozen? */ + unsigned char frozen_ro) /* Was sb read-only * when frozen? */ unsigned short freeze_holders; /* Who froze fs? */ struct percpu_rw_semaphore rw_sem[SB_FREEZE_LEVELS]; -- 2.46.1