Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753152AbYJQG2Y (ORCPT ); Fri, 17 Oct 2008 02:28:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751455AbYJQG2P (ORCPT ); Fri, 17 Oct 2008 02:28:15 -0400 Received: from hawking.rebel.net.au ([203.20.69.83]:42732 "EHLO hawking.rebel.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751152AbYJQG2P (ORCPT ); Fri, 17 Oct 2008 02:28:15 -0400 Message-ID: <48F83078.8020408@davidnewall.com> Date: Fri, 17 Oct 2008 16:58:08 +1030 From: David Newall User-Agent: Thunderbird 2.0.0.12 (X11/20080227) MIME-Version: 1.0 To: Hugh Dickins CC: Peter Zijlstra , Peter Cordes , linux-kernel@vger.kernel.org, Christoph Hellwig , linux-mm Subject: Re: no way to swapoff a deleted swap file? References: <20081015202141.GX26067@cordes.ca> <1224145684.28131.25.camel@twins> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 885 Lines: 25 Hugh Dickins wrote: > On Thu, 16 Oct 2008, Peter Zijlstra wrote: > >> On Wed, 2008-10-15 at 17:21 -0300, Peter Cordes wrote: >> >>> I unlinked a swapfile without realizing I was still swapping on it. >>> >> I see your problem and it makes sense to look for a nice solution. >> > > although I'll willingly admit it's a > lacuna, I don't think it's one worth bloating the kernel for. Me too. The kernel shouldn't protect the administrator against all possible mistakes; and this mistake is one of them. Besides, who's to say it's always a mistake? Somebody might want their swap file to have zero links. Do nothing. -- 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/