From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Hansen Subject: Re: [PATCH 0/3] Fadvise: Directory level page cache cleaning support Date: Mon, 30 Dec 2013 11:18:15 -0800 Message-ID: <52C1C6F7.8010809@intel.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Cong Wang , Zefan Li , Matthew Wilcox To: Li Wang , Alexander Viro Return-path: In-Reply-To: Sender: owner-linux-mm@kvack.org List-Id: linux-fsdevel.vger.kernel.org On 12/30/2013 05:45 AM, Li Wang wrote: > This patch extends 'fadvise' to support directory level page cache > cleaning. The call to posix_fadvise(fd, 0, 0, POSIX_FADV_DONTNEED) > with 'fd' referring to a directory will recursively reclaim page cache > entries of files inside 'fd'. For secruity concern, those inodes > which the caller does not own appropriate permissions will not > be manipulated. Why is this necessary to do in the kernel? Why not leave it to userspace to walk the filesystem(s)? -- 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/ . Don't email: email@kvack.org