]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ext4: use ext4_fc_tl_mem in fast-commit replay path
authorEric Biggers <ebiggers@google.com>
Sat, 17 Dec 2022 05:02:12 +0000 (21:02 -0800)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 14 Mar 2023 15:47:49 +0000 (16:47 +0100)
commitb264daff27ed40207cf7a9d6c08ad3c207fdc1c1
treeef85550b85bc895d1c9dd411f5b6eee9bbf99678
parent5af8bcb5ff4ff3916c154f70c61ecf538322fe86
ext4: use ext4_fc_tl_mem in fast-commit replay path

BugLink: https://bugs.launchpad.net/bugs/2011430
[ Upstream commit 11768cfd98136dd8399480c60b7a5d3d3c7b109b ]

To avoid 'sparse' warnings about missing endianness conversions, don't
store native endianness values into struct ext4_fc_tl.  Instead, use a
separate struct type, ext4_fc_tl_mem.

Fixes: dcc5827484d6 ("ext4: factor out ext4_fc_get_tl()")
Cc: Ye Bin <yebin10@huawei.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20221217050212.150665-1-ebiggers@kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ext4/fast_commit.c