From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sat, 18 Oct 2008 00:42:41 +0200 (CEST) From: Bodo Eggert <7eggert@gmx.de> Subject: Re: no way to swapoff a deleted swap file? In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=us-ascii Sender: owner-linux-mm@kvack.org Return-Path: To: Hugh Dickins Cc: Bodo Eggert <7eggert@gmx.de>, David Newall , Peter Zijlstra , Peter Cordes , linux-kernel@vger.kernel.org, Christoph Hellwig , linux-mm List-ID: On Fri, 17 Oct 2008, Hugh Dickins wrote: > On Fri, 17 Oct 2008, Bodo Eggert wrote: > > Somebody might want their swapfiles to have zero links, > > _and_ the possibility of doing swapoff. > > You're right, they might, and it's not an unreasonable wish. > But we've not supported it in the past, and I still don't > think it's worth adding special kernel support for it now. IMO it depends on the cost. Maybe it's cheap to keep an extra fd around, maybe you'd have to add an extra infrastructure for this. And maybe it's not important enough for anybody to create a patch and let us know ... -- Funny quotes: 9. Despite the cost of living, have you noticed how popular it remains? -- 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