From: Fan Yong Date: Fri, 2 Feb 2018 07:44:26 +0000 (+0800) Subject: LU-10598 obdclass: ignore IGIF formatted last_id X-Git-Tag: 2.10.4-RC1~40 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=51854afa37b4520f0c0cc0bab8d0056b8ac9ae6f;p=fs%2Flustre-release.git LU-10598 obdclass: ignore IGIF formatted last_id All the FIDs with sequence within [FID_SEQ_IGIF, FID_SEQ_IGIF_MAX] is valid IGIF in spite of what the f_oid is. So the IGIF with zero f_oid is also valid IGIF, not last_id. So that last_id check logic should ignore IGIF formatted last_id. Lustre-change: https://review.whamcloud.com/31140 Lustre-commit: 0fa1cc6fbfd7ec777139a8ead4efce83fde4e702 Signed-off-by: Fan Yong Change-Id: I81dc7b237e91688b09f360e43899a1de2c44bf78 Reviewed-by: Andreas Dilger Reviewed-by: Lai Siyao Reviewed-by: John L. Hammond Reviewed-by: Oleg Drokin Signed-off-by: Minh Diep Reviewed-on: https://review.whamcloud.com/31952 Tested-by: Jenkins Tested-by: Maloo --- diff --git a/lustre/include/uapi/linux/lustre_fid.h b/lustre/include/uapi/linux/lustre_fid.h index a43507e..3e58dd5 100644 --- a/lustre/include/uapi/linux/lustre_fid.h +++ b/lustre/include/uapi/linux/lustre_fid.h @@ -265,7 +265,8 @@ static inline bool fid_is_last_id(const struct lu_fid *fid) return false; if (fid_seq(fid) == FID_SEQ_UPDATE_LOG || - fid_seq(fid) == FID_SEQ_UPDATE_LOG_DIR) + fid_seq(fid) == FID_SEQ_UPDATE_LOG_DIR || + fid_seq_is_igif(fid_seq(fid))) return false; return true;