[Devel] [PATCH RH9 05/10] ext4: Simplify UUID dereference in ext4_send_uevent_work()
Kirill Tkhai
ktkhai at virtuozzo.com
Tue Jan 25 15:23:09 MSK 2022
UUID copy is in super_block::s_uuid.
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
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