提交 95c53219 编写于 作者: Y Ye Bin 提交者: Cheng Jian

ext4: Fix unreport netlink message to userspace when fs abort

hulk inclusion
category: bugfix
bugzilla: NA
CVE: NA

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

Fixes: e5389b288cf0 ("ext4: make ext4_abort() use __ext4_error()")
Fixes: 47e86bedca58 ("ext4: report error to userspace by netlink")
Signed-off-by: NYe Bin <yebin10@huawei.com>
Reviewed-by: Nzhangyi (F) <yi.zhang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NCheng Jian <cj.chengjian@huawei.com>
上级 4e9f7002
......@@ -89,7 +89,6 @@ static void ext4_unregister_li_request(struct super_block *sb);
static void ext4_clear_request_list(void);
static struct inode *ext4_get_journal_inode(struct super_block *sb,
unsigned int journal_inum);
static void ext4_netlink_send_info(struct super_block *sb, int ext4_errno);
static struct sock *ext4nl;
/*
......@@ -590,7 +589,7 @@ static void ext4_handle_error(struct super_block *sb, bool force_ro, int error,
smp_wmb();
sb->s_flags |= SB_RDONLY;
out:
ext4_netlink_send_info(sb, 1);
ext4_netlink_send_info(sb, force_ro ? 2 : 1);
}
static void flush_stashed_error_work(struct work_struct *work)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册