]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging/lustre: Remove commented out obd functions
authorOleg Drokin <green@linuxhacker.ru>
Thu, 25 Feb 2016 03:00:41 +0000 (22:00 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Feb 2016 06:08:59 +0000 (22:08 -0800)
obd_register_page_removal_cb, obd_unregister_page_removal_cb
obd_register_lock_cancel_cb, obd_unregister_lock_cancel_cb

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/obd_class.h

index 7ea580115f9e22968084b7799c8a4d0c810fe8d9..851521808cf1423cebfce5f3d46783e63b37dc99 100644 (file)
@@ -1328,57 +1328,6 @@ static inline int obd_register_observer(struct obd_device *obd,
        return 0;
 }
 
-#if 0
-static inline int obd_register_page_removal_cb(struct obd_export *exp,
-                                              obd_page_removal_cb_t cb,
-                                              obd_pin_extent_cb pin_cb)
-{
-       int rc;
-
-       OBD_CHECK_DT_OP(exp->exp_obd, register_page_removal_cb, 0);
-       OBD_COUNTER_INCREMENT(exp->exp_obd, register_page_removal_cb);
-
-       rc = OBP(exp->exp_obd, register_page_removal_cb)(exp, cb, pin_cb);
-       return rc;
-}
-
-static inline int obd_unregister_page_removal_cb(struct obd_export *exp,
-                                                obd_page_removal_cb_t cb)
-{
-       int rc;
-
-       OBD_CHECK_DT_OP(exp->exp_obd, unregister_page_removal_cb, 0);
-       OBD_COUNTER_INCREMENT(exp->exp_obd, unregister_page_removal_cb);
-
-       rc = OBP(exp->exp_obd, unregister_page_removal_cb)(exp, cb);
-       return rc;
-}
-
-static inline int obd_register_lock_cancel_cb(struct obd_export *exp,
-                                             obd_lock_cancel_cb cb)
-{
-       int rc;
-
-       OBD_CHECK_DT_OP(exp->exp_obd, register_lock_cancel_cb, 0);
-       OBD_COUNTER_INCREMENT(exp->exp_obd, register_lock_cancel_cb);
-
-       rc = OBP(exp->exp_obd, register_lock_cancel_cb)(exp, cb);
-       return rc;
-}
-
-static inline int obd_unregister_lock_cancel_cb(struct obd_export *exp,
-                                                obd_lock_cancel_cb cb)
-{
-       int rc;
-
-       OBD_CHECK_DT_OP(exp->exp_obd, unregister_lock_cancel_cb, 0);
-       OBD_COUNTER_INCREMENT(exp->exp_obd, unregister_lock_cancel_cb);
-
-       rc = OBP(exp->exp_obd, unregister_lock_cancel_cb)(exp, cb);
-       return rc;
-}
-#endif
-
 /* metadata helpers */
 static inline int md_getstatus(struct obd_export *exp, struct lu_fid *fid)
 {