From: adilger Date: Fri, 8 Nov 2002 18:29:13 +0000 (+0000) Subject: Some additional changes for kmem accounting that I missed. X-Git-Tag: 0.5.17~46 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=04f7caacf9b80e422b58b9466ddf1fecd0e7aae8;p=fs%2Flustre-release.git Some additional changes for kmem accounting that I missed. --- diff --git a/lustre/ldlm/ldlm_lockd.c b/lustre/ldlm/ldlm_lockd.c index cb447b8..dc5bc64 100644 --- a/lustre/ldlm/ldlm_lockd.c +++ b/lustre/ldlm/ldlm_lockd.c @@ -586,8 +586,6 @@ static int ldlm_iocontrol(long cmd, struct lustre_handle *conn, int len, return err; } -#define LDLM_NUM_THREADS 4 - static int ldlm_setup(struct obd_device *obddev, obd_count len, void *buf) { struct ldlm_obd *ldlm = &obddev->u.ldlm; diff --git a/lustre/obdfilter/filter.c b/lustre/obdfilter/filter.c index a5d5d0e..a628b89 100644 --- a/lustre/obdfilter/filter.c +++ b/lustre/obdfilter/filter.c @@ -1440,6 +1440,8 @@ static int filter_preprw(int cmd, struct lustre_handle *conn, GOTO(out_ctxt, rc = PTR_ERR(*desc_private)); } + obd_highmem_get(niocount); + for (i = 0; i < objcount; i++, o++) { struct dentry *dentry; struct inode *inode; @@ -1502,6 +1504,7 @@ out_clean: else lustre_put_page(lnb->page); } + obd_highmem_put(niocount); goto out_stop; } @@ -1588,6 +1591,7 @@ static int filter_commitrw(int cmd, struct lustre_handle *conn, } else lustre_put_page(page); + obd_highmem_put(1); f_dput(r->dentry); } } @@ -1606,6 +1610,7 @@ static int filter_commitrw(int cmd, struct lustre_handle *conn, continue; err = filter_write_locked_page(r); + obd_highmem_put(1); if (!rc) rc = err; f_dput(r->dentry);