Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp93397iog; Thu, 16 Jun 2022 22:58:26 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tgLr6bh/C+K6QWHJ10EkF3mlZImaQ0/GMlDGVgF44b0ULNnZEoSbKMBKLtp9eX0sZ8xe4V X-Received: by 2002:a17:902:cec5:b0:166:3418:5260 with SMTP id d5-20020a170902cec500b0016634185260mr8135158plg.129.1655445505903; Thu, 16 Jun 2022 22:58:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655445505; cv=none; d=google.com; s=arc-20160816; b=R5FAZR6OF14T6QX2BabdGVmgg6gbAgqFy5O7JIv0MOt5RJly+IgqHHChL2WP0wurm5 hq8OHS824Y36wbBQzdTNPO73yx+R13czI9iFXGfwIJXFgR+5BmCov+QrZdR8BVeXU5NP t49Fll7GJSJWv9sKPD5x77ky6ed7TKtwSorRdurq1GcrU4cnICbBCFHQRlufPJO2Wh/W 6CqeJGMccFNmdGeuqJ1UzXqDOamkpBZ/a9lWo2kW7+ZG8v2wyifKiLjdQjRRXgFFETJk MPygt1lI5EnTzY/nm6m5qg6fJZp+3IStnabqtdbycCirS2m0B2mDMx7Mr2EjZl79Qs4N pqLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:date:cc:to:from:subject; bh=9bqFWsYc4CRnvz0aY2+XFcwhWLDn8+jSAUVjEnY4K8A=; b=rFH2QkViCZ2qkCp7aK9d3BD1imKnI2tjYz1jt3DiS8c3yLzO56VY70nZjSAHVysYtu nnaKzOkISHGOerw70x7OB4q/S8WMI4Q6QW1QPk+RyPD7ReD4INIcZKT57jbnKyFuRn/a Rnc2dJAeBrAN7RXBQUOLZu5D2Ft5J3o5v96ebtjkXJB3ojoWcdl8r8nP0UrtqJjWG4y/ UgZ4Nrr2TZY0vXEFB4aiYw9A6nGtFkTXjNMi9o5qfKA+b9UcrXTo+cyurl6wnbNvvNZ6 EMnTscMNiZtAhCXlR6x3t5T5tZvDZepu1mJRunn0I0YpOiY4C91YIZETPkosq3sqOx6x OPEw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z11-20020a170902d54b00b001639f4baac2si4149029plf.332.2022.06.16.22.57.30; Thu, 16 Jun 2022 22:58:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232060AbiFQFf2 (ORCPT + 99 others); Fri, 17 Jun 2022 01:35:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbiFQFf1 (ORCPT ); Fri, 17 Jun 2022 01:35:27 -0400 Received: from smtp03.aussiebb.com.au (smtp03.aussiebb.com.au [121.200.0.94]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A37527CEC; Thu, 16 Jun 2022 22:35:26 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by smtp03.aussiebb.com.au (Postfix) with ESMTP id B607D1A0089; Fri, 17 Jun 2022 15:35:24 +1000 (AEST) X-Virus-Scanned: Debian amavisd-new at smtp03.aussiebb.com.au Received: from smtp03.aussiebb.com.au ([127.0.0.1]) by localhost (smtp03.aussiebb.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CcQxztOSE9xy; Fri, 17 Jun 2022 15:35:24 +1000 (AEST) Received: by smtp03.aussiebb.com.au (Postfix, from userid 119) id ACD071A0082; Fri, 17 Jun 2022 15:35:24 +1000 (AEST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00, RCVD_IN_VALIDITY_RPBL,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 Received: from donald.themaw.net (180-150-90-198.b4965a.per.nbn.aussiebb.net [180.150.90.198]) by smtp03.aussiebb.com.au (Postfix) with ESMTP id 2FF621A0080; Fri, 17 Jun 2022 15:35:24 +1000 (AEST) Subject: [PATCH 0/6] autofs: misc patches From: Ian Kent To: Al Viro Cc: David Howells , Miklos Szeredi , linux-fsdevel , Kernel Mailing List Date: Fri, 17 Jun 2022 13:35:23 +0800 Message-ID: <165544393032.250070.3426550720222448062.stgit@donald.themaw.net> User-Agent: StGit/1.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series contains several patches that resulted mostly from comments made by Al Viro (quite a long time ago now). They are: - make use of the .permission() method for access checks. - use dentry info count instead of simple_empty() to avoid taking a spinlock. - add a use cases comment to autofs_mountpoint_changed(). - make better use of mount trigger flags (I think this was actually mentioned by me at the time). Others: - fix usage consistency problem with dentry info count. - remove unused inode field from info struct. Signed-off-by: Ian Kent --- Ian Kent (6): autofs: use inode permission method for write access autofs: make dentry info count consistent autofs: use dentry info count instead of simple_empty() autofs: add comment about autofs_mountpoint_changed() autofs: remove unused ino field inode autofs: manage dentry info mount trigger flags better fs/autofs/autofs_i.h | 7 +- fs/autofs/expire.c | 2 +- fs/autofs/inode.c | 1 + fs/autofs/root.c | 203 +++++++++++++++++++------------------------ 4 files changed, 98 insertions(+), 115 deletions(-) -- Ian Kent