Whamcloud - gitweb
LU-13426 mdd: correctly swap OIs during migration 72/38172/5
authorMikhail Pershin <mpershin@whamcloud.com>
Wed, 8 Apr 2020 08:07:47 +0000 (11:07 +0300)
committerOleg Drokin <green@whamcloud.com>
Thu, 14 May 2020 05:40:20 +0000 (05:40 +0000)
commite468c285e0d801e1f2ef6772e43df1465666c649
tree88dadcce2339b09131dd6250360a9a991ad06f6f
parent067dc642521487b2d53f46da1dec4b9d5f570c67
LU-13426 mdd: correctly swap OIs during migration

While swapping layouts mdd_swap_layouts() swaps also OI(FID)
and uses lmm->lmm_oi directly in one place which is wrong if
corresponding layout is composite. Layout OI should be taken
by using mdd_get_lmm_oi() which handles all layout types
correctly.

Patch fixes that by using mdd_get_lmm_oi() instead of direct
access to lmm_oi field.

Signed-off-by: Mikhail Pershin <mpershin@whamcloud.com>
Change-Id: I6a7dc9ece3b272f75a5f206b32937cf9f674ead9
Reviewed-on: https://review.whamcloud.com/38172
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
lustre/mdd/mdd_object.c
lustre/tests/sanity.sh