Whamcloud - gitweb
Some additional changes for kmem accounting that I missed.
authoradilger <adilger>
Fri, 8 Nov 2002 18:29:13 +0000 (18:29 +0000)
committeradilger <adilger>
Fri, 8 Nov 2002 18:29:13 +0000 (18:29 +0000)
lustre/ldlm/ldlm_lockd.c
lustre/obdfilter/filter.c

index cb447b8..dc5bc64 100644 (file)
@@ -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;
index a5d5d0e..a628b89 100644 (file)
@@ -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);