]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
staging/lustre/obdclass: Proper swabbing of llog_rec_tail.
authorHenri Doreau <henri.doreau@cea.fr>
Mon, 2 Feb 2015 02:52:09 +0000 (21:52 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Feb 2015 09:31:10 +0000 (17:31 +0800)
commitdbab2d8563d8a988dd4ec740ab9c06a4f86890ea
tree8b6fb3e954b5f708434695253f8c848b59717d3f
parent081fa9dffcde7c9fc4d9fdf18fe277dfa3f675aa
staging/lustre/obdclass: Proper swabbing of llog_rec_tail.

A variable-length structure preceeds llog_rec_tail within an llog
block. Thus cr_tail shouldn't be accessed directly as a structure
member but its actual location should be computed dynamically.

Signed-off-by: Henri Doreau <henri.doreau@cea.fr>
Reviewed-on: http://review.whamcloud.com/11937
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5631
Reviewed-by: jacques-Charles Lafoucriere <jacques-charles.lafoucriere@cea.fr>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/obdclass/llog_swab.c