summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/xarray.py
diff options
context:
space:
mode:
authorXichao Zhao <zhao.xichao@vivo.com>2025-08-29 17:15:10 +0800
committerChristian Brauner <brauner@kernel.org>2025-08-29 12:00:58 +0200
commit38d1227fa71d96b470172df50e241775a802a8e7 (patch)
tree2733573bbe7c7e7b6fd3b0759b80037cc1ee3b2c /scripts/gdb/linux/xarray.py
parentec6f613ef376410753173f8236bad5f07a86503a (diff)
fs: Replace offsetof() with struct_size() in ioctl_file_dedupe_range()
When dealing with structures containing flexible arrays, struct_size() provides additional compile-time checks compared to offsetof(). This enhances code robustness and reduces the risk of potential errors. Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com> Link: https://lore.kernel.org/20250829091510.597858-1-zhao.xichao@vivo.com Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/xarray.py')
0 files changed, 0 insertions, 0 deletions