Displaying 4 results from an estimated 4 matches for "max_scan".
Did you mean:
max_scale
2012 Jun 26
6
[PATCH] Add a page cache-backed balloon device driver.
...;
+}
+
+/*
+ * Scans the page_tree for the inode's mapping, looking for an offset that is
+ * currently empty, returning that index (or 0 if it could not fill the
+ * request).
+ */
+static unsigned long find_available_inode_page(struct virtio_balloon *vb)
+{
+ unsigned long radix_index, index, max_scan;
+ struct address_space *mapping = the_inode.inode.i_mapping;
+
+ /*
+ * This function is a serialized call (only happens on the free-to-host
+ * thread), so no locking is necessary here.
+ */
+ index = vb->last_scan_page_array;
+ max_scan = totalram_pages - vb->last_scan_page_array;
+
+ /...
2012 Jun 26
6
[PATCH] Add a page cache-backed balloon device driver.
...;
+}
+
+/*
+ * Scans the page_tree for the inode's mapping, looking for an offset that is
+ * currently empty, returning that index (or 0 if it could not fill the
+ * request).
+ */
+static unsigned long find_available_inode_page(struct virtio_balloon *vb)
+{
+ unsigned long radix_index, index, max_scan;
+ struct address_space *mapping = the_inode.inode.i_mapping;
+
+ /*
+ * This function is a serialized call (only happens on the free-to-host
+ * thread), so no locking is necessary here.
+ */
+ index = vb->last_scan_page_array;
+ max_scan = totalram_pages - vb->last_scan_page_array;
+
+ /...
2012 Jul 25
0
No subject
...;> + * currently empty, returning that index (or 0 if it could not fill the
> >> + * request).
> >> + */
> >> +static unsigned long find_available_inode_page(struct virtio_balloon *vb)exactlyexactly
> >> +{
> >> + unsigned long radix_index, index, max_scan;
> >> + struct address_space *mapping = the_inode.inode.i_mapping;
> >> +
> >> + /*
> >> + * This function is a serialized call (only happens on the free-to-host
> >> + * thread), so no locking is necessary here.
> >> + */...
2012 Jul 25
0
No subject
...;> + * currently empty, returning that index (or 0 if it could not fill the
> >> + * request).
> >> + */
> >> +static unsigned long find_available_inode_page(struct virtio_balloon *vb)exactlyexactly
> >> +{
> >> + unsigned long radix_index, index, max_scan;
> >> + struct address_space *mapping = the_inode.inode.i_mapping;
> >> +
> >> + /*
> >> + * This function is a serialized call (only happens on the free-to-host
> >> + * thread), so no locking is necessary here.
> >> + */...