Whamcloud - gitweb
LU-15278 lod: distinguish DIR/REGULAR lod_object members 10/45710/11
authorBobi Jam <bobijam@whamcloud.com>
Thu, 2 Dec 2021 10:34:42 +0000 (18:34 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 30 May 2022 19:03:37 +0000 (19:03 +0000)
commit7a9c9ccabe93f2d96c80e90f8cbb786faca74835
tree172e2bdee3d5b39867a3b9e248171169cf16afaf
parent782e37e54f5c54886972320e526845da422d9a03
LU-15278 lod: distinguish DIR/REGULAR lod_object members

In lod_striping_free_nolock(), we need to distinguish lod_object
type, since DIR/REGULAR lod_object structure share the same memory
region, it could accidently free some unintended memory if it treat
DIR lod_object as REGULAR one, or vice versa.

Fixes: 6a20bdcc608b ("LU-11376 lov: new foreign LOV format")
Fixes: fdad38781ccc ("LU-11376 lmv: new foreign LMV format")
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: I2d4c563725b35f7a75f0f1fbf9c1d35b1799eff4
Reviewed-on: https://review.whamcloud.com/45710
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lod/lod_internal.h
lustre/lod/lod_lov.c
lustre/lod/lod_object.c