staging/lustre/osc: Remove ops_temp from osc_page
authorOleg Drokin <green@linuxhacker.ru>
Mon, 6 Jun 2016 03:28:52 +0000 (23:28 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jun 2016 05:39:41 +0000 (22:39 -0700)
It's no longer used and never set anywhere.

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

index ae19d396b53770a06de71d8f0c38653aa4dc115f..7359fcb0d8c56ffb1011abec148f92c134568e25 100644 (file)
@@ -355,11 +355,6 @@ struct osc_page {
         * Boolean, true iff page is under transfer. Used for sanity checking.
         */
        unsigned              ops_transfer_pinned:1,
-       /**
-        * True for a `temporary page' created by read-ahead code, probably
-        * outside of any DLM lock.
-        */
-                             ops_temp:1,
        /**
         * in LRU?
         */
index c29c2eabe39c2fcd7d091d6ea02f1cfdebf20230..fc3674388a1ca5f42f34540489f597625aa77be4 100644 (file)
@@ -214,7 +214,7 @@ static void osc_page_delete(const struct lu_env *env,
        struct osc_object *obj = cl2osc(opg->ops_cl.cpl_obj);
        int rc;
 
-       LINVRNT(opg->ops_temp || osc_page_protected(env, opg, CLM_READ, 1));
+       LINVRNT(osc_page_protected(env, opg, CLM_READ, 1));
 
        CDEBUG(D_TRACE, "%p\n", opg);
        osc_page_transfer_put(env, opg);