Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S272962AbTHFAFa (ORCPT ); Tue, 5 Aug 2003 20:05:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S272961AbTHFAFa (ORCPT ); Tue, 5 Aug 2003 20:05:30 -0400 Received: from adsl-206-170-148-147.dsl.snfc21.pacbell.net ([206.170.148.147]:20486 "EHLO gw.goop.org") by vger.kernel.org with ESMTP id S272960AbTHFAF0 (ORCPT ); Tue, 5 Aug 2003 20:05:26 -0400 Subject: Re: [PATCH] autofs4 doesn't expire From: Jeremy Fitzhardinge To: Andrew Morton Cc: Dick Streefland , linux-kernel , Maneesh Soni In-Reply-To: <20030805164904.36b5d2cc.akpm@osdl.org> References: <4b0c.3f302ca5.93873@altium.nl> <20030805164904.36b5d2cc.akpm@osdl.org> Content-Type: text/plain Message-Id: <1060128203.14615.17.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Tue, 05 Aug 2003 17:03:23 -0700 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 614 Lines: 22 On Tue, 2003-08-05 at 16:49, Andrew Morton wrote: > Probably we should hold onto that ref because we play with the vfsmount > later on. So something like this? We're of one mind. > + if (vfs) { > + if (is_vfsmnt_tree_busy(vfs)) > + ret = 0; > + mntput(vfs); > + } mntput will cheerfully ignore a NULL vfs, so I don't think the code needs this much mashing. J - 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/