Transient pages do not go in the LRU, so don't bother
trying to add them.
Test-Parameters: forjanitoronly
Test-Parameters: fortestonly
Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I90e3cca2229e1ae7d769c0534b5b6e0be2357ad9
ext->oe_rc = rc ?: ext->oe_nr_pages;
EASSERT(ergo(rc == 0, ext->oe_state == OES_RPC), ext);
- osc_lru_add_batch(cli, &ext->oe_pages);
+ /* dio pages do not go in the LRU */
+ if (!ext->oe_dio)
+ osc_lru_add_batch(cli, &ext->oe_pages);
+
list_for_each_entry_safe(oap, tmp, &ext->oe_pages,
oap_pending_item) {
list_del_init(&oap->oap_rpc_item);