staging: lustre: remove ENTRY macro
[linux-2.6-block.git] / drivers / staging / lustre / lustre / osc / osc_io.c
index 1b277045b3e436da54977f8810314d8dcd999236..60e5c9d5cfa08d4ce611b965986d723d8ab4f351 100644 (file)
@@ -261,7 +261,6 @@ static int osc_io_prepare_write(const struct lu_env *env,
        struct obd_import *imp = class_exp2cliimp(dev->od_exp);
        struct osc_io     *oio = cl2osc_io(env, ios);
        int result = 0;
-       ENTRY;
 
        /*
         * This implements OBD_BRW_CHECK logic from old client.
@@ -288,7 +287,6 @@ static int osc_io_commit_write(const struct lu_env *env,
        struct osc_page       *opg = cl2osc_page(slice);
        struct osc_object     *obj = cl2osc(opg->ops_cl.cpl_obj);
        struct osc_async_page *oap = &opg->ops_oap;
-       ENTRY;
 
        LASSERT(to > 0);
        /*
@@ -315,8 +313,6 @@ static int osc_io_fault_start(const struct lu_env *env,
        struct cl_io       *io;
        struct cl_fault_io *fio;
 
-       ENTRY;
-
        io  = ios->cis_io;
        fio = &io->u.ci_fault;
        CDEBUG(D_INFO, "%lu %d %d\n",
@@ -517,13 +513,12 @@ static int osc_io_read_start(const struct lu_env *env,
        struct cl_object *obj   = slice->cis_obj;
        struct cl_attr   *attr  = &osc_env_info(env)->oti_attr;
        int           result = 0;
-       ENTRY;
 
        if (oio->oi_lockless == 0) {
                cl_object_attr_lock(obj);
                result = cl_object_attr_get(env, obj, attr);
                if (result == 0) {
-                       attr->cat_atime = LTIME_S(CFS_CURRENT_TIME);
+                       attr->cat_atime = LTIME_S(CURRENT_TIME);
                        result = cl_object_attr_set(env, obj, attr,
                                                    CAT_ATIME);
                }
@@ -539,7 +534,6 @@ static int osc_io_write_start(const struct lu_env *env,
        struct cl_object *obj   = slice->cis_obj;
        struct cl_attr   *attr  = &osc_env_info(env)->oti_attr;
        int           result = 0;
-       ENTRY;
 
        if (oio->oi_lockless == 0) {
                OBD_FAIL_TIMEOUT(OBD_FAIL_OSC_DELAY_SETTIME, 1);
@@ -547,7 +541,7 @@ static int osc_io_write_start(const struct lu_env *env,
                result = cl_object_attr_get(env, obj, attr);
                if (result == 0) {
                        attr->cat_mtime = attr->cat_ctime =
-                               LTIME_S(CFS_CURRENT_TIME);
+                               LTIME_S(CURRENT_TIME);
                        result = cl_object_attr_set(env, obj, attr,
                                                    CAT_MTIME | CAT_CTIME);
                }
@@ -565,7 +559,6 @@ static int osc_fsync_ost(const struct lu_env *env, struct osc_object *obj,
        struct lov_oinfo *loi   = obj->oo_oinfo;
        struct osc_async_cbargs *cbargs = &oio->oi_cbarg;
        int rc = 0;
-       ENTRY;
 
        memset(oa, 0, sizeof(*oa));
        oa->o_oi = loi->loi_oi;
@@ -598,7 +591,6 @@ static int osc_io_fsync_start(const struct lu_env *env,
        pgoff_t start  = cl_index(obj, fio->fi_start);
        pgoff_t end    = cl_index(obj, fio->fi_end);
        int     result = 0;
-       ENTRY;
 
        if (fio->fi_end == OBD_OBJECT_EOF)
                end = CL_PAGE_EOF;
@@ -785,7 +777,7 @@ static void osc_req_attr_set(const struct lu_env *env,
                                              "no cover page!\n");
                        CL_PAGE_DEBUG(D_ERROR, env, apage,
                                      "dump uncover page!\n");
-                       libcfs_debug_dumpstack(NULL);
+                       dump_stack();
                        LBUG();
                }