linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: bert hubert <ahu@ds9a.nl>
To: linux-mm@kvack.org
Subject: again, no dirty pages?
Date: Sun, 1 Jul 2001 22:20:11 +0200	[thread overview]
Message-ID: <20010701222011.A30171@home.ds9a.nl> (raw)

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/

                 reply	other threads:[~2001-07-01 20:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010701222011.A30171@home.ds9a.nl \
    --to=ahu@ds9a.nl \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox