Whamcloud - gitweb
LU-4738 lmv: access lum_stripe_offset as little endian 71/9671/2
authorJohn L. Hammond <john.hammond@intel.com>
Fri, 14 Mar 2014 16:01:32 +0000 (11:01 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 25 Mar 2014 23:52:21 +0000 (23:52 +0000)
commit3d013806d52dd8c89d4114df68dbd19c7e721744
tree9abf4d0ab1726d64def850285ffc7c77ef7e3da8
parent3efa31eacc612261ea3019fbd7243e573714042c
LU-4738 lmv: access lum_stripe_offset as little endian

By the time that a struct lmv_user_md reaches lmv_placement_policy()
it has already been converted to little endian. Therefore use the
appropriate macros around accesses to this this field. This issue was
found by rewriting the definition of struct lmv_user_md to use the
__leXX typedefs and running sparse.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: If641375eabd22cc3e935a2e8f1327c48081c6ed1
Reviewed-on: http://review.whamcloud.com/9671
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Swapnil Pimpale <spimpale@ddn.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/lmv/lmv_obd.c