Displaying 15 results from an estimated 15 matches for "ra_pages".
2007 Apr 18
0
[patch 7/9] Guest page hinting: minor fault optimization.
...L, NULL,
pgoff, pgoff, pgoff + 1);
- page = find_get_page(mapping, pgoff);
+ page = find_get_page_nodiscard(mapping, pgoff);
} else if (PageReadahead(page)) {
page_cache_readahead_adaptive(mapping, ra,
file, NULL, page,
@@ -1623,7 +1629,7 @@ retry_find:
start = pgoff - ra_pages / 2;
do_page_cache_readahead(mapping, file, start, ra_pages);
}
- page = find_get_page(mapping, pgoff);
+ page = find_get_page_nodiscard(mapping, pgoff);
if (!page)
goto no_cached_page;
}
@@ -1709,14 +1715,27 @@ page_not_uptodate:
/* Did somebody else get it up-to-date? */
if...
2007 Apr 18
0
[patch 7/9] Guest page hinting: minor fault optimization.
...L, NULL,
pgoff, pgoff, pgoff + 1);
- page = find_get_page(mapping, pgoff);
+ page = find_get_page_nodiscard(mapping, pgoff);
} else if (PageReadahead(page)) {
page_cache_readahead_adaptive(mapping, ra,
file, NULL, page,
@@ -1623,7 +1629,7 @@ retry_find:
start = pgoff - ra_pages / 2;
do_page_cache_readahead(mapping, file, start, ra_pages);
}
- page = find_get_page(mapping, pgoff);
+ page = find_get_page_nodiscard(mapping, pgoff);
if (!page)
goto no_cached_page;
}
@@ -1709,14 +1715,27 @@ page_not_uptodate:
/* Did somebody else get it up-to-date? */
if...
2011 Jun 10
6
[PATCH v2 0/6] btrfs: generic readeahead interface
This series introduces a generic readahead interface for btrfs trees.
The intention is to use it to speed up scrub in a first run, but balance
is another hot candidate. In general, every tree walk could be accompanied
by a readahead. Deletion of large files comes to mind, where the fetching
of the csums takes most of the time.
Also the initial build-ups of free-space-caches and
2012 Jun 26
6
[PATCH] Add a page cache-backed balloon device driver.
...etPageUptodate(page);
+ unlock_page(page);
+ return 0;
+}
+
+static const struct address_space_operations balloonfs_aops = {
+ .writepage = balloonfs_writepage,
+ .readpage = balloonfs_readpage
+};
+
+static struct backing_dev_info balloonfs_backing_dev_info = {
+ .name = "balloonfs",
+ .ra_pages = 0,
+ .capabilities = BDI_CAP_NO_ACCT_AND_WRITEBACK
+};
+
+static struct dentry *balloonfs_mount(struct file_system_type *fs_type,
+ int flags, const char *dev_name, void *data)
+{
+ struct dentry *root;
+ struct inode *inode;
+ root = mount_pseudo(fs_type, "balloon:", &balloonfs_...
2012 Jun 26
6
[PATCH] Add a page cache-backed balloon device driver.
...etPageUptodate(page);
+ unlock_page(page);
+ return 0;
+}
+
+static const struct address_space_operations balloonfs_aops = {
+ .writepage = balloonfs_writepage,
+ .readpage = balloonfs_readpage
+};
+
+static struct backing_dev_info balloonfs_backing_dev_info = {
+ .name = "balloonfs",
+ .ra_pages = 0,
+ .capabilities = BDI_CAP_NO_ACCT_AND_WRITEBACK
+};
+
+static struct dentry *balloonfs_mount(struct file_system_type *fs_type,
+ int flags, const char *dev_name, void *data)
+{
+ struct dentry *root;
+ struct inode *inode;
+ root = mount_pseudo(fs_type, "balloon:", &balloonfs_...
2012 Jul 25
0
No subject
...> + .writepage = balloonfs_writepage,
> >> + .readpage = balloonfs_readpage
> >> +};
> >> +
> >> +static struct backing_dev_info balloonfs_backing_dev_info = {
> >> + .name = "balloonfs",
> >> + .ra_pages = 0,
> >> + .capabilities = BDI_CAP_NO_ACCT_AND_WRITEBACK
> >> +};
> >> +
> >> +static struct dentry *balloonfs_mount(struct file_system_type *fs_type,
> >> + int flags, const char *dev_name, void *data)
> >> +{...
2012 Jul 25
0
No subject
...> + .writepage = balloonfs_writepage,
> >> + .readpage = balloonfs_readpage
> >> +};
> >> +
> >> +static struct backing_dev_info balloonfs_backing_dev_info = {
> >> + .name = "balloonfs",
> >> + .ra_pages = 0,
> >> + .capabilities = BDI_CAP_NO_ACCT_AND_WRITEBACK
> >> +};
> >> +
> >> +static struct dentry *balloonfs_mount(struct file_system_type *fs_type,
> >> + int flags, const char *dev_name, void *data)
> >> +{...
2007 Jun 28
6
[patch 0/6] resend: guest page hinting version 5.
Greetings,
after Carsten pitched CMM2 on the kvm mini summit here is a repost
of version 5 of the guest page hinting patches. The code is still
the same but has been adapted to the latest git level.
--
blue skies,
Martin.
"Reality continues to ruin my life." - Calvin.
2007 Jun 28
6
[patch 0/6] resend: guest page hinting version 5.
Greetings,
after Carsten pitched CMM2 on the kvm mini summit here is a repost
of version 5 of the guest page hinting patches. The code is still
the same but has been adapted to the latest git level.
--
blue skies,
Martin.
"Reality continues to ruin my life." - Calvin.
2007 May 11
6
[patch 0/6] [rfc] guest page hinting version 5
After way to many months here is the fifth version of the guest page
hinting patches. Compared to version four a few improvements have been
added:
- Avoid page_host_discards() calls outside of page-states.h
- The discard list is now implemented via the page_free_discarded
hook and architecture specific code.
- PG_state_change page flag has been replaced with architecture
specficic
2007 May 11
6
[patch 0/6] [rfc] guest page hinting version 5
After way to many months here is the fifth version of the guest page
hinting patches. Compared to version four a few improvements have been
added:
- Avoid page_host_discards() calls outside of page-states.h
- The discard list is now implemented via the page_free_discarded
hook and architecture specific code.
- PG_state_change page flag has been replaced with architecture
specficic
2011 Jun 29
14
[PATCH v4 0/6] btrfs: generic readeahead interface
This series introduces a generic readahead interface for btrfs trees.
The intention is to use it to speed up scrub in a first run, but balance
is another hot candidate. In general, every tree walk could be accompanied
by a readahead. Deletion of large files comes to mind, where the fetching
of the csums takes most of the time.
Also the initial build-ups of free-space-caches and
2010 Jun 03
2
Tracking down hangs
...ns (3958 active extents) in activity log.
[ 50.457458] block drbd0: Method to ensure write ordering: barrier
[ 50.457458] block drbd0: Backing device's merge_bvec_fn() = ffffffffa012106e
[ 50.457458] block drbd0: max_segment_size ( = BIO size ) = 0
[ 50.457458] block drbd0: Adjusting my ra_pages to backing device's (32 -> 128)
[ 50.457458] block drbd0: drbd_bm_resize called with capacity == 31255781280
[ 50.479664] bonding: bond1: link status definitely up for interface eth2.
[ 50.479671] bonding: bond1: link status definitely up for interface eth3.
[ 50.814074] block drbd0:...
2012 Apr 20
1
[PATCH] multiqueue: a hodge podge of things
...ueue_ctx),
+ GFP_KERNEL, node_id);
+ if (!q->queue_ctx) {
+ kmem_cache_free(blk_requestq_cachep, q);
+ return NULL;
+ }
+
+ blk_init_queue_ctx(q, nr_queues);
+
q->id = ida_simple_get(&blk_queue_ida, 0, 0, gfp_mask);
if (q->id < 0)
goto fail_q;
q->backing_dev_info.ra_pages =
(VM_MAX_READAHEAD * 1024) / PAGE_CACHE_SIZE;
q->backing_dev_info.state = 0;
q->backing_dev_info.capabilities = BDI_CAP_MAP_COPY;
q->backing_dev_info.name = "block";
@@ -498,19 +522,18 @@ struct request_queue *blk_alloc_queue_node(gfp_t gfp_mask, int node_id)
if (err...
2012 Apr 20
1
[PATCH] multiqueue: a hodge podge of things
...ueue_ctx),
+ GFP_KERNEL, node_id);
+ if (!q->queue_ctx) {
+ kmem_cache_free(blk_requestq_cachep, q);
+ return NULL;
+ }
+
+ blk_init_queue_ctx(q, nr_queues);
+
q->id = ida_simple_get(&blk_queue_ida, 0, 0, gfp_mask);
if (q->id < 0)
goto fail_q;
q->backing_dev_info.ra_pages =
(VM_MAX_READAHEAD * 1024) / PAGE_CACHE_SIZE;
q->backing_dev_info.state = 0;
q->backing_dev_info.capabilities = BDI_CAP_MAP_COPY;
q->backing_dev_info.name = "block";
@@ -498,19 +522,18 @@ struct request_queue *blk_alloc_queue_node(gfp_t gfp_mask, int node_id)
if (err...