From 0fa1cc6fbfd7ec777139a8ead4efce83fde4e702 Mon Sep 17 00:00:00 2001 From: Fan Yong Date: Fri, 2 Feb 2018 15:44:26 +0800 Subject: [PATCH] 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. Signed-off-by: Fan Yong Change-Id: I81dc7b237e91688b09f360e43899a1de2c44bf78 Reviewed-on: https://review.whamcloud.com/31140 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Lai Siyao Reviewed-by: John L. Hammond Reviewed-by: Oleg Drokin --- lustre/include/uapi/linux/lustre/lustre_fid.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/include/uapi/linux/lustre/lustre_fid.h b/lustre/include/uapi/linux/lustre/lustre_fid.h index 53aae4d..8a430f7 100644 --- a/lustre/include/uapi/linux/lustre/lustre_fid.h +++ b/lustre/include/uapi/linux/lustre/lustre_fid.h @@ -273,7 +273,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; -- 1.8.3.1