Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754168AbYJQMRx (ORCPT ); Fri, 17 Oct 2008 08:17:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753457AbYJQMRq (ORCPT ); Fri, 17 Oct 2008 08:17:46 -0400 Received: from extu-mxob-1.symantec.com ([216.10.194.28]:57750 "EHLO extu-mxob-1.symantec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753410AbYJQMRp (ORCPT ); Fri, 17 Oct 2008 08:17:45 -0400 Date: Fri, 17 Oct 2008 13:17:17 +0100 (BST) From: Hugh Dickins X-X-Sender: hugh@blonde.site To: Bodo Eggert <7eggert@gmx.de> cc: David Newall , Peter Zijlstra , Peter Cordes , linux-kernel@vger.kernel.org, Christoph Hellwig , linux-mm 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: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 853 Lines: 22 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. > If you can do it by keeping some fds open to let > /proc/pid/fd point to the files, I think it's OK. I've a very strong aversion to adding strange code to abuse the /proc//fd space of some random kernel thread - a "kswapd" because its name contains the substring "swap"? Hugh -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/