Whamcloud - gitweb
LU-14854 mdd: proper handle error in mdd_swap_layouts()
authorBobi Jam <bobijam@whamcloud.com>
Thu, 15 Jul 2021 18:22:38 +0000 (02:22 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 14 Jan 2022 06:07:03 +0000 (06:07 +0000)
commite26bd88b3075e1bd048930aebaadea173c5d7e69
tree938daa17ea6c681648afe5065943b8d32ea01654
parenta3f3aaf8ce7241c8370163951d82e6750bae0399
LU-14854 mdd: proper handle error in mdd_swap_layouts()

Only restore object's HSM xattr on error if it's for
SWAP_LAYOUTS_MDS_HSM.

Lustre-change: https://review.whamcloud.com/44319
Lustre-commit: 7648c1c905b0976fc789cfd9c6bac382389385ee

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: I9d4c58cd3107c3900e72a0946d0ec7d7286dd43f
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/46021
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
lustre/mdd/mdd_object.c