Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp107233imm; Tue, 3 Jul 2018 14:59:24 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL6aKrBpnz1b9jWVcVyUkXGC/9+hTsoWR6tXpL6YhhwzsKRjLUCRvQ2idtMl8r/nCH3Z0Zq X-Received: by 2002:a65:6455:: with SMTP id s21-v6mr26162002pgv.394.1530655164840; Tue, 03 Jul 2018 14:59:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530655164; cv=none; d=google.com; s=arc-20160816; b=m4i6dUUCyXoNDtSyBS8ddqOtTeqq1+bPtZZQsWfakYegsOLtVbbte7xPfMJtHwk58r JgH8BQnrWOFagyPCibuMPS7ztPMwqWvWCfR+eKCETPvi42eXUEbp4y/1juz9johMXa6A 1AZ7mAQXZUIaZMZNMObE0XYJwq+wK4mY0rT1fki5vZND/mNZi/Ph++daruFyfzGBLkUn Yyx83d1bB7r4HvjLsy7fS1WnXnw26dnIoDpTsvJGO52DsHrV7Q/EMaD4ZSPosuvGjDo8 Oo8RIYQE15tBYz3emfxbnX3sGF7UwCChmbMJRt1SuShCK/YFuq3TrO+4NSLq3iO1t2tO GUMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=peTMr/CBDOFl/Ld9w4wmWG7VpXxg9bu+u6eLhj7OLCw=; b=h5qtY6WEaoI1jtWZQb/C3BYFL3w2GEqF7e6pBndXXtx1aTSpaNehCHLBwiAcUPAjr8 xPBJf0RWnpclCO6MTYDBE9DMILCcO+7ey+HAj8CES+YdNAw0P9xqERVdtUrFJkGAFDPy ySjSMqYdHVZ7ilU53+KggYRgSQeZCMXm/m9OO84dt8jDJqY9X58jBZ+Qy9JJDpEglNPK U7dTwYfOeOsiaR/3sPUMF+mdodUWp4mNnNiLcTe+Q6SrIfTjRwjBDk/EnhvV321BPIyc M7lGI16Q7nsX3h27KJw1Rp9L4qyLycjspynlE1/TkAWZ0txTxw99FrPt3DsKLQ9sfgzv aVLQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r10-v6si1765904pgq.187.2018.07.03.14.59.09; Tue, 03 Jul 2018 14:59:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753348AbeGCV6a (ORCPT + 99 others); Tue, 3 Jul 2018 17:58:30 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:45470 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752839AbeGCV63 (ORCPT ); Tue, 3 Jul 2018 17:58:29 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.87 #1 (Red Hat Linux)) id 1faTJa-0002Cl-2r; Tue, 03 Jul 2018 21:58:26 +0000 Date: Tue, 3 Jul 2018 22:58:26 +0100 From: Al Viro To: David Howells Cc: Eric Biggers , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-afs@lists.infradead.org Subject: Re: [PATCH 10/32] VFS: Implement a filesystem superblock creation/configuration context [ver #8] Message-ID: <20180703215825.GX30522@ZenIV.linux.org.uk> References: <20180703183325.GA210265@gmail.com> <152720672288.9073.9868393448836301272.stgit@warthog.procyon.org.uk> <152720678933.9073.11201500538963619904.stgit@warthog.procyon.org.uk> <14124.1530654802@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <14124.1530654802@warthog.procyon.org.uk> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 03, 2018 at 10:53:22PM +0100, David Howells wrote: > - if (s) { > - up_write(&s->s_umount); > + if (s) > destroy_unused_super(s); static void destroy_unused_super(struct super_block *s) { if (!s) return; ... } IOW, all of those should be unconditional.