search for: inode_pfn

Displaying 4 results from an estimated 4 matches for "inode_pfn".

Did you mean: inode_fe
2012 Jun 26
6
[PATCH] Add a page cache-backed balloon device driver.
...err; +} + +static void fill_balloon(struct virtio_balloon *vb, size_t num) +{ + int err; + + /* We can only do one array worth at a time. */ + num = min(num, ARRAY_SIZE(vb->pfns)); + + for (vb->num_pfns = 0; vb->num_pfns < num; vb->num_pfns++) { + struct page *page; + unsigned long inode_pfn = find_available_inode_page(vb); + /* Should always be able to find a page. */ + BUG_ON(!inode_pfn); + page = read_mapping_page(the_inode.inode.i_mapping, inode_pfn, + NULL); + if (IS_ERR(page)) { + if (printk_ratelimit()) + dev_printk(KERN_INFO, &vb->vdev->dev, + &qu...
2012 Jun 26
6
[PATCH] Add a page cache-backed balloon device driver.
...err; +} + +static void fill_balloon(struct virtio_balloon *vb, size_t num) +{ + int err; + + /* We can only do one array worth at a time. */ + num = min(num, ARRAY_SIZE(vb->pfns)); + + for (vb->num_pfns = 0; vb->num_pfns < num; vb->num_pfns++) { + struct page *page; + unsigned long inode_pfn = find_available_inode_page(vb); + /* Should always be able to find a page. */ + BUG_ON(!inode_pfn); + page = read_mapping_page(the_inode.inode.i_mapping, inode_pfn, + NULL); + if (IS_ERR(page)) { + if (printk_ratelimit()) + dev_printk(KERN_INFO, &vb->vdev->dev, + &qu...
2012 Jul 25
0
No subject
...an only do one array worth at a time. */ > >> + num = min(num, ARRAY_SIZE(vb->pfns)); > >> + > >> + for (vb->num_pfns = 0; vb->num_pfns < num; vb->num_pfns++) { > >> + struct page *page; > >> + unsigned long inode_pfn = find_available_inode_page(vb); > >> + /* Should always be able to find a page. */ > >> + BUG_ON(!inode_pfn); > >> + page = read_mapping_page(the_inode.inode.i_mapping, inode_pfn, > >> + NU...
2012 Jul 25
0
No subject
...an only do one array worth at a time. */ > >> + num = min(num, ARRAY_SIZE(vb->pfns)); > >> + > >> + for (vb->num_pfns = 0; vb->num_pfns < num; vb->num_pfns++) { > >> + struct page *page; > >> + unsigned long inode_pfn = find_available_inode_page(vb); > >> + /* Should always be able to find a page. */ > >> + BUG_ON(!inode_pfn); > >> + page = read_mapping_page(the_inode.inode.i_mapping, inode_pfn, > >> + NU...