From patchwork Fri Jul 8 01:42:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Kent X-Patchwork-Id: 12910436 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AAF6EC43334 for ; Fri, 8 Jul 2022 01:43:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237107AbiGHBnA (ORCPT ); Thu, 7 Jul 2022 21:43:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237105AbiGHBm7 (ORCPT ); Thu, 7 Jul 2022 21:42:59 -0400 Received: from smtp01.aussiebb.com.au (smtp01.aussiebb.com.au [121.200.0.92]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB65973580; Thu, 7 Jul 2022 18:42:58 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp01.aussiebb.com.au (Postfix) with ESMTP id 0FCD41007DA; Fri, 8 Jul 2022 11:42:56 +1000 (AEST) X-Virus-Scanned: Debian amavisd-new at smtp01.aussiebb.com.au Received: from smtp01.aussiebb.com.au ([127.0.0.1]) by localhost (smtp01.aussiebb.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4nyuI2736-md; Fri, 8 Jul 2022 11:42:56 +1000 (AEST) Received: by smtp01.aussiebb.com.au (Postfix, from userid 116) id 04CF61005DD; Fri, 8 Jul 2022 11:42:56 +1000 (AEST) Received: from donald.themaw.net (180-150-90-198.b4965a.per.nbn.aussiebb.net [180.150.90.198]) by smtp01.aussiebb.com.au (Postfix) with ESMTP id 757C410005B; Fri, 8 Jul 2022 11:42:55 +1000 (AEST) Subject: [PATCH 0/5] autofs: misc patches From: Ian Kent To: Al Viro Cc: Andrew Morton , David Howells , Miklos Szeredi , linux-fsdevel , Kernel Mailing List Date: Fri, 08 Jul 2022 09:42:55 +0800 Message-ID: <165724445154.30914.10970894936827635879.stgit@donald.themaw.net> User-Agent: StGit/1.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@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(). Others: - fix usage consistency problem with dentry info count. - remove unused inode field from info struct. Signed-off-by: Ian Kent --- Ian Kent (5): 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 fs/autofs/autofs_i.h | 7 ++- fs/autofs/expire.c | 2 +- fs/autofs/inode.c | 1 + fs/autofs/root.c | 108 ++++++++++++++++++++----------------------- 4 files changed, 57 insertions(+), 61 deletions(-) -- Ian