Whamcloud - gitweb
LU-14459 llite: reset pfid after dir migration 89/43289/7
authorLai Siyao <lai.siyao@whamcloud.com>
Mon, 12 Apr 2021 03:17:37 +0000 (11:17 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 12 Jul 2021 18:46:16 +0000 (18:46 +0000)
commitabbe545a63b304e803ee62443dd65f1feeed15cd
treea8b6f42c45ce940aad4f794cd8adeb469023eec9
parenta4fbe7341baf12c00c6048bb290f8aa26c05cbac
LU-14459 llite: reset pfid after dir migration

A plain directory will be turned into to a stripe upon
migration/restripe, and reversely if target is plain directory, the
target stripe will be turned into directory after.

In the first case, set pfid, and in the latter case, clear pfid,
otherwise ll_lock_cancel_bits() will use the wrong master inode.

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I01cac0103dc79d493166e6b090508d24f9678a57
Reviewed-on: https://review.whamcloud.com/43289
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/llite_lib.c