lkml.org 
[lkml]   [2010]   [Jul]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 12/14] vmscan: Do not writeback pages in direct reclaim
From
On Tue, Jul 6, 2010 at 9:36 AM, KOSAKI Motohiro
<kosaki.motohiro@jp.fujitsu.com> wrote:
> Hello,
>
>> Ok, that's reasonable as I'm still working on that patch. For example, the
>> patch disabled anonymous page writeback which is unnecessary as the stack
>> usage for anon writeback is less than file writeback.
>
> How do we examine swap-on-file?

bool is_swap_on_file(struct page *page)
{
struct swap_info_struct *p;
swp_entry_entry entry;
entry.val = page_private(page);
p = swap_info_get(entry);
return !(p->flags & SWP_BLKDEV)
}

--
Kind regards,
Minchan Kim


\
 
 \ /
  Last update: 2010-07-06 07:49    [W:0.133 / U:1.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site