tmpex.l_extent.end = tmpex.l_extent.start + PAGE_CACHE_SIZE - 1;
l_flags = LDLM_FL_BLOCK_GRANTED | LDLM_FL_CBPENDING | LDLM_FL_TEST_LOCK;
/* check to see if another DLM lock covers this page b=2765 */
- rc2 = obd_match(ll_s2dtexp(inode->i_sb), lsm, LDLM_EXTENT,
- &tmpex, LCK_PR | LCK_PW, &l_flags, inode,
- &lockh);
- if (rc2 == 0 && page->mapping != NULL) {
+ rc2 = ldlm_lock_match(lock->l_resource->lr_namespace,
+ l_flags, &lock->l_resource->lr_name,
+ LDLM_EXTENT, &tmpex, LCK_PR | LCK_PW, &lockh);
+
+ if (rc2 <= 0 && page->mapping != NULL) {
struct ll_async_page *llap = llap_cast_private(page);
// checking again to account for writeback's lock_page()
LL_CDEBUG_PAGE(D_PAGE, page, "truncating\n");
do_facet client cp /etc/termcap $f
sync
- local osc2dev=`grep ${ost2_svc}-osc-MDT0000 $LPROC/devices | awk '{print $1}'`
+ local osc2dev=`grep ${ost2_svc}-osc- $LPROC/devices | egrep -v 'MDT' | awk '{print $1}'`
$LCTL --device $osc2dev deactivate || return 3
# my understanding is that there should be nothing in the page
# cache after the client reconnects?