summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorOleg Drokin <green@linuxhacker.ru>2016-06-05 23:28:52 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-06-07 22:39:41 -0700
commitd4722fccbe78c2b45a0a534d8944247592eaefe7 (patch)
treefe95d601152a7ca87b00049201d75cf7908deb1a /drivers
parent966c4a8f8029a595a5e1840d51309ac417bb4234 (diff)
downloadop-kernel-dev-d4722fccbe78c2b45a0a534d8944247592eaefe7.zip
op-kernel-dev-d4722fccbe78c2b45a0a534d8944247592eaefe7.tar.gz
staging/lustre/osc: Remove ops_temp from osc_page
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/lustre/lustre/osc/osc_cl_internal.h5
-rw-r--r--drivers/staging/lustre/lustre/osc/osc_page.c2
2 files changed, 1 insertions, 6 deletions
diff --git a/drivers/staging/lustre/lustre/osc/osc_cl_internal.h b/drivers/staging/lustre/lustre/osc/osc_cl_internal.h
index ae19d39..7359fcb 100644
--- a/drivers/staging/lustre/lustre/osc/osc_cl_internal.h
+++ b/drivers/staging/lustre/lustre/osc/osc_cl_internal.h
@@ -356,11 +356,6 @@ struct osc_page {
*/
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?
*/
ops_in_lru:1,
diff --git a/drivers/staging/lustre/lustre/osc/osc_page.c b/drivers/staging/lustre/lustre/osc/osc_page.c
index c29c2ea..fc36743 100644
--- a/drivers/staging/lustre/lustre/osc/osc_page.c
+++ b/drivers/staging/lustre/lustre/osc/osc_page.c
@@ -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);
OpenPOWER on IntegriCloud