lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <484DEC71.7090607@cn.fujitsu.com>
Date:	Tue, 10 Jun 2008 10:52:33 +0800
From:	Li Zefan <lizf@...fujitsu.com>
To:	Rik Van Riel <riel@...hat.com>
CC:	Andrew Morton <akpm@...ux-foundation.org>,
	Lee Schermerhorn <Lee.Schermerhorn@...com>,
	KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re:  [PATCH -mm 23/25] Noreclaim LRU scan sysctl

> +static void show_page_path(struct page *page)
> +{
> +	char buf[256];
> +	if (page_file_cache(page)) {
> +		struct address_space *mapping = page->mapping;
> +		struct dentry *dentry;
> +		pgoff_t pgoff = page->index << (PAGE_CACHE_SHIFT - PAGE_SHIFT);
> +
> +		spin_lock(&mapping->i_mmap_lock);
> +		dentry = d_find_alias(mapping->host);
> +		printk(KERN_INFO "rescued: %s %lu\n",
> +		       dentry_path(dentry, buf, 256), pgoff);
> +		spin_unlock(&mapping->i_mmap_lock);
> +	} else {
> +		struct anon_vma *anon_vma;
> +		struct vm_area_struct *vma;
> +
> +		anon_vma = page_lock_anon_vma(page);
> +		if (!anon_vma)
> +			return;
> +
> +		list_for_each_entry(vma, &anon_vma->head, anon_vma_node) {
> +			printk(KERN_INFO "rescued: anon %s\n",
> +			       vma->vm_mm->owner->comm);

This would cause compile failure if !CONFIG_MM_OWNER.

> +			break;
> +		}
> +		page_unlock_anon_vma(anon_vma);
> +	}
> +}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ