From: Timothy Day Date: Sun, 1 Jun 2025 20:39:04 +0000 (-0400) Subject: LU-18813 osd-wbcfs: make dt_last_seq_get() optional X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=bae082e9c4f5ecdfb5642462470200c91ac94885;p=fs%2Flustre-release.git LU-18813 osd-wbcfs: make dt_last_seq_get() optional Allow osd-wbcfs to leave this unimplemented for now. Once we track object mapping internally, we can implement this. Fixes: 373b76b345b5 ("LU-17658 fid: check on disk sequence before allocating to osp") Test-Parameters: trivial Signed-off-by: Timothy Day Change-Id: Iea4401db0c7656fd56c43f6e0d296cabce89e864 --- diff --git a/lustre/include/dt_object.h b/lustre/include/dt_object.h index c3b05b0..21d70f5 100644 --- a/lustre/include/dt_object.h +++ b/lustre/include/dt_object.h @@ -3054,7 +3054,10 @@ static inline int dt_last_seq_get(const struct lu_env *env, { LASSERT(dev); LASSERT(dev->dd_ops); - LASSERT(dev->dd_ops->dt_last_seq_get); + + if (!dev->dd_ops->dt_last_seq_get) + return -EINVAL; + return dev->dd_ops->dt_last_seq_get(env, dev, seq); }