search for: for_reclaim

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

2012 Jun 26
6
[PATCH] Add a page cache-backed balloon device driver.
...ritepage(struct page *page, struct writeback_control *wbc) +{ + the_inode.vb->last_reclaim = jiffies; + SetPageUptodate(page); + ClearPageDirty(page); + /* + * If the page isn't being flushed from the page allocator, go ahead and + * drop it from the page cache anyway. + */ + if (!wbc->for_reclaim) + delete_from_page_cache(page); + unlock_page(page); + return 0; +} + +/* Nearly no-op implementation of readpage */ +static int balloonfs_readpage(struct file *file, struct page *page) +{ + SetPageUptodate(page); + unlock_page(page); + return 0; +} + +static const struct address_space_operations...
2012 Jun 26
6
[PATCH] Add a page cache-backed balloon device driver.
...ritepage(struct page *page, struct writeback_control *wbc) +{ + the_inode.vb->last_reclaim = jiffies; + SetPageUptodate(page); + ClearPageDirty(page); + /* + * If the page isn't being flushed from the page allocator, go ahead and + * drop it from the page cache anyway. + */ + if (!wbc->for_reclaim) + delete_from_page_cache(page); + unlock_page(page); + return 0; +} + +/* Nearly no-op implementation of readpage */ +static int balloonfs_readpage(struct file *file, struct page *page) +{ + SetPageUptodate(page); + unlock_page(page); + return 0; +} + +static const struct address_space_operations...
2012 Jul 25
0
No subject
...etPageUptodate(page); > >> + ClearPageDirty(page); > >> + /* > >> + * If the page isn't being flushed from the page allocator, go ahead and > >> + * drop it from the page cache anyway. > >> + */ > >> + if (!wbc->for_reclaim) > >> + delete_from_page_cache(page); > >> + unlock_page(page); > >> + return 0; > >> +} > >> + > >> +/* Nearly no-op implementation of readpage */ > >> +static int balloonfs_readpage(struct file *file, struct page *...
2012 Jul 25
0
No subject
...etPageUptodate(page); > >> + ClearPageDirty(page); > >> + /* > >> + * If the page isn't being flushed from the page allocator, go ahead and > >> + * drop it from the page cache anyway. > >> + */ > >> + if (!wbc->for_reclaim) > >> + delete_from_page_cache(page); > >> + unlock_page(page); > >> + return 0; > >> +} > >> + > >> +/* Nearly no-op implementation of readpage */ > >> +static int balloonfs_readpage(struct file *file, struct page *...