From bae082e9c4f5ecdfb5642462470200c91ac94885 Mon Sep 17 00:00:00 2001 From: Timothy Day Date: Sun, 1 Jun 2025 16:39:04 -0400 Subject: [PATCH] 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 --- lustre/include/dt_object.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } -- 1.8.3.1