[Devel] [PATCH RHEL9 COMMIT] ext4: Simplify UUID dereference in ext4_send_uevent_work()
Konstantin Khorenko
khorenko at virtuozzo.com
Thu Jan 27 17:36:53 MSK 2022
The commit is pushed to "branch-rh9-5.14.0-4.vz9.12.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh9-5.14.0-4.vz9.12.2
------>
commit 8b47ebbd56f0fc82b857a25a4b6c873a5110fd5b
Author: Kirill Tkhai <ktkhai at virtuozzo.com>
Date: Thu Jan 27 17:36:53 2022 +0300
ext4: Simplify UUID dereference in ext4_send_uevent_work()
UUID copy is in super_block::s_uuid.
To_merge: ac6082c837be ("ext4: add generic uevent infrastructure")
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
====================
xfs: Add notification about fs events like for ext4
This patchset generalizes ext4's related code and introduced the same
uevent notifications for xfs.
https://jira.sw.ru/browse/PSBM-135476
Feature: fs: udev events support
---
fs/ext4/super.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index acb7994bac02..88927904478e 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -436,7 +436,7 @@ static void ext4_send_uevent_work(struct work_struct *w)
struct fs_uevent *e = container_of(w, struct fs_uevent, work);
struct super_block *sb = e->sb;
struct kobj_uevent_env *env;
- const u8 *uuid = EXT4_SB(sb)->s_es->s_uuid;
+ const uuid_t *uuid = &sb->s_uuid;
enum kobject_action kaction = KOBJ_CHANGE;
int ret;
More information about the Devel
mailing list