Whamcloud - gitweb
LU-18813 osd-wbcfs: make dt_last_seq_get() optional
authorTimothy Day <timday@amazon.com>
Sun, 1 Jun 2025 20:39:04 +0000 (16:39 -0400)
committerOleg Drokin <green@linuxhacker.ru>
Fri, 13 Jun 2025 01:36:16 +0000 (21:36 -0400)
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 <timday@amazon.com>
Change-Id: Iea4401db0c7656fd56c43f6e0d296cabce89e864

lustre/include/dt_object.h

index c3b05b0..21d70f5 100644 (file)
@@ -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);
 }