Whamcloud - gitweb
LU-10598 obdclass: ignore IGIF formatted last_id 40/31140/2
authorFan Yong <fan.yong@intel.com>
Fri, 2 Feb 2018 07:44:26 +0000 (15:44 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 9 Apr 2018 19:48:49 +0000 (19:48 +0000)
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 <fan.yong@intel.com>
Change-Id: I81dc7b237e91688b09f360e43899a1de2c44bf78
Reviewed-on: https://review.whamcloud.com/31140
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>

index 53aae4d..8a430f7 100644 (file)
@@ -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;