From e5fd32541a430ef75bd436c29ed868b601805cf2 Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Tue, 25 Oct 2011 15:56:45 -0600 Subject: [PATCH 1/1] LU-753 obd: remove obsolete commit callback code Remove old obd_transno_commit_cb() function, which was replaced by lut_cb_last_committed() in the new LU stack implementation. Signed-off-by: Andreas Dilger Signed-off-by: Mikhail Pershin Change-Id: I789687c63761c2532c02f5a1b827d8625b770c1c Reviewed-on: http://review.whamcloud.com/4211 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Alex Zhuravlev --- lustre/include/obd.h | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/lustre/include/obd.h b/lustre/include/obd.h index 1db2234..02e5fee 100644 --- a/lustre/include/obd.h +++ b/lustre/include/obd.h @@ -1688,27 +1688,6 @@ int lvfs_check_io_health(struct obd_device *obd, struct file *file); #define OBD_CALC_STRIPE_START 1 #define OBD_CALC_STRIPE_END 2 -static inline void obd_transno_commit_cb(struct obd_device *obd, __u64 transno, - struct obd_export *exp, int error) -{ - if (error) { - CERROR("%s: transno "LPU64" commit error: %d\n", - obd->obd_name, transno, error); - return; - } - if (exp && transno > exp->exp_last_committed) { - CDEBUG(D_HA, "%s: transno "LPU64" committed\n", - obd->obd_name, transno); - exp->exp_last_committed = transno; - ptlrpc_commit_replies(exp); - } else { - CDEBUG(D_INFO, "%s: transno "LPU64" committed\n", - obd->obd_name, transno); - } - if (transno > obd->obd_last_committed) - obd->obd_last_committed = transno; -} - static inline struct lustre_capa *oinfo_capa(struct obd_info *oinfo) { return oinfo->oi_capa; -- 1.8.3.1