From mboxrd@z Thu Jan 1 00:00:00 1970 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 24391E7849A for ; Mon, 2 Oct 2023 07:14:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235717AbjJBHOL (ORCPT ); Mon, 2 Oct 2023 03:14:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235705AbjJBHOK (ORCPT ); Mon, 2 Oct 2023 03:14:10 -0400 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 643FEA4 for ; Mon, 2 Oct 2023 00:14:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=8U9e1zmxSuesmwaylEnDBB/eAsJCW4dMn4O3GxqfPbo=; b=WlZQNbzLUhGPf4uDIORuDO9UdT NLAHZQ2cdO7kuseVaJbMuqx/mI2OBGbsscUE+zURkz3guQPvWKydloWmJcVljEZA8NT0MmupiB2V6 mloo5zxdeBXrSNEMUT1cWzOp8jBMjl3TloqJsfkWyH5vC7kGl1+Cj3eU9ypimEge+LpLc+XR5LXbw ivsVn8VKr7Wh5gtfjklUnhKJ3Zw8DTBgf3cfMhiRG2n5Eh4QTJt2CTZFtZeUIdT6/KfIibtbDIobg lpeBFHG+eZWI/fX9YH2y7FoQPXjpY2aaHSUgog0UtCaxQDous0l5lI61YqIbCtspGlsUeegJdF3NA poGE3Vxw==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1qnD7y-00EJyA-09; Mon, 02 Oct 2023 07:14:02 +0000 Date: Mon, 2 Oct 2023 08:14:01 +0100 From: Al Viro To: Christoph Hellwig Cc: linux-fsdevel@vger.kernel.org, Christian Brauner , Linus Torvalds , Namjae Jeon , David Sterba , David Howells , Miklos Szeredi , Amir Goldstein , Trond Myklebust , Bob Peterson , Steve French , Luis Chamberlain Subject: Re: [PATCH 04/15] hfsplus: switch to rcu-delayed unloading of nls and freeing ->s_fs_info Message-ID: <20231002071401.GT800259@ZenIV> References: <20231002022815.GQ800259@ZenIV> <20231002022846.GA3389589@ZenIV> <20231002023125.GE3389589@ZenIV> <20231002064912.GA2013@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231002064912.GA2013@lst.de> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Mon, Oct 02, 2023 at 08:49:12AM +0200, Christoph Hellwig wrote: > Instead of all this duplicatio in the file system, can we please just > add a > > struct nls_table *s_nls; > > to struct super_block and RCU free it in common code and drop all the > code in the file systems? It makes no sense for most of the filesystems, for one thing (note that any use in ->lookup() does not warrant rcu delays). What's more, how do you formulate the rules for what goes in that field when filesystem uses more than one nls_table?