Whamcloud - gitweb
LU-18813 osd-wbcfs: make dt_last_seq_get() optional 02/59502/2
authorTimothy Day <timday@amazon.com>
Sun, 1 Jun 2025 20:39:04 +0000 (16:39 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 17 Jun 2025 02:50:21 +0000 (02:50 +0000)
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
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/59502
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-by: Qian Yingjin <qian@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
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);
 }