* again, no dirty pages?
@ 2001-07-01 20:20 bert hubert
0 siblings, 0 replies; only message in thread
From: bert hubert @ 2001-07-01 20:20 UTC (permalink / raw)
To: linux-mm
This is my local version of mincore_page in filemap.c:
static unsigned char mincore_page(struct vm_area_struct * vma,
unsigned long pgoff)
{
unsigned char present = 0;
struct address_space * as = &vma->vm_file->f_dentry->d_inode->i_data;
struct page * page, ** hash = page_hash(as, pgoff);
spin_lock(&pagecache_lock);
page = __find_page_nolock(as, pgoff, *hash);
if (page) {
if(Page_Uptodate(page))
present |= 1;
if(PageDirty(page))
present |= 2;
}
spin_unlock(&pagecache_lock);
return present;
}
But it never sets any bits for DirtyPages, even when I think there should be
dirty pages, for example, when I run "cat /dev/zero > file" and
simultaneously cinfo (http://ds9a.nl/cinfo) on the generated file.
My version of cinfo also looks for the second bit, but it never finds any
dirty pages.
Any clues? Thanks!
--
http://www.PowerDNS.com Versatile DNS Services
Trilab The Technology People
'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-07-01 20:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-01 20:20 again, no dirty pages? bert hubert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox