Whamcloud - gitweb
LU-2590 obdclass: correct swab lov_mds_md
authorBobi Jam <bobijam.xu@intel.com>
Wed, 23 Jan 2013 03:08:10 +0000 (11:08 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 8 Feb 2013 23:41:16 +0000 (18:41 -0500)
commit11ae0dc7cdb2a2417b988f7970ad26c3ac1002aa
tree41ecf02fec0e204bbdcaa647bd1156811b40b92b
parente163c90f0d1c754a21498d2248f8e21e9f9713da
LU-2590 obdclass: correct swab lov_mds_md

For caller's convenience, the 2nd parameter of obd_free_diskmd()
could be host endianness, it needs swab to LE if necessary, while just
lov_mds_md header needs it for figuring out how much memory needs to
be freed.

Signed-off-by: Bobi Jam <bobijam.xu@intel.com>
Change-Id: I537e83b56b4be6e08a7431bfda1de71efefa33ee
Reviewed-on: http://review.whamcloud.com/5145
Tested-by: Hudson
Reviewed-by: Prakash Surya <surya1@llnl.gov>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/include/obd_class.h