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
| ||
|
Date: Fri, 17 Dec 2010 16:51:44 +0100 From: Miklos Szeredi <miklos@...redi.hu> To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com> CC: miklos@...redi.hu, akpm@...ux-foundation.org, linux-fsdevel@...r.kernel.org, linux-mm@...ck.org, linux-kernel@...r.kernel.org Subject: Re: [PATCH] mm: add replace_page_cache_page() function On Fri, 17 Dec 2010, KAMEZAWA Hiroyuki wrote: > No. memory cgroup expects all pages should be found on LRU. But, IIUC, > pages on this radix-tree will not be on LRU. So, memory cgroup can't find > it at destroying cgroup and can't reduce "usage" of resource to be 0. > This makes rmdir() returns -EBUSY. Oh, right. Yes, the page will be on the LRU (it needs to be, otherwise the VM coulnd't reclaim it). After the add_to_page_cache_locked is this: if (!(buf->flags & PIPE_BUF_FLAG_LRU)) lru_cache_add_file(newpage); It will add the page to the LRU, unless it's already on it. Thanks, Miklos -- 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