Whamcloud - gitweb
LU-753 obd: remove obsolete commit callback code
authorAndreas Dilger <adilger@whamcloud.com>
Tue, 25 Oct 2011 21:56:45 +0000 (15:56 -0600)
committerOleg Drokin <green@whamcloud.com>
Mon, 8 Oct 2012 07:34:45 +0000 (03:34 -0400)
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 <adilger@whamcloud.com>
Signed-off-by: Mikhail Pershin <tappro@whamcloud.com>
Change-Id: I789687c63761c2532c02f5a1b827d8625b770c1c
Reviewed-on: http://review.whamcloud.com/4211
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
lustre/include/obd.h

index 1db2234..02e5fee 100644 (file)
@@ -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;