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 43EB7C25B47 for ; Fri, 27 Oct 2023 05:46:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231295AbjJ0FqJ (ORCPT ); Fri, 27 Oct 2023 01:46:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229633AbjJ0FqH (ORCPT ); Fri, 27 Oct 2023 01:46:07 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B3271AC; Thu, 26 Oct 2023 22:46:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=ZLuxSxaXZXtmhz2kwBSLdfxZZzeqNXY/Bo+Zf+OGNgA=; b=qyJ8G3O4Dj3NfjB2h8bnWTkn0e k/vcocf321CswfwoIv7sEelvUBP9ncfxx91zquNUCO5KhlEt4YCmxepP9oZEi/Gg5C25DTm1c91Vf 2Yn/SISlJ89tJ6gxEgggXC4RffyUOMHnHulm2zdYxCR2bv46pY2WJ5kR6M/UKdaArYv3I7GsAjuv+ RGT56YSnzO0jKA2eo9+WvkCMICd7YaHjLiTZ5r/E5uSC/fni/5DTG7IXWso/n1HVsMGhiWrzK6H1u QlwhI8a5JAczPxK680Ekvc/csjFlzQe6SmYqacjIKGBDRFPxWqbbiWmtgyNdjmRQR4Fd4PHP6FyBL upxl3dNg==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1qwFfV-00FdHN-1L; Fri, 27 Oct 2023 05:46:01 +0000 Date: Thu, 26 Oct 2023 22:46:01 -0700 From: Christoph Hellwig To: Josef Bacik Cc: Christoph Hellwig , Amir Goldstein , Jan Kara , Christian Brauner , Chris Mason , David Sterba , linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 0/3] fanotify support for btrfs sub-volumes Message-ID: References: <20231025135048.36153-1-amir73il@gmail.com> <20231025210654.GA2892534@perftesting> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231025210654.GA2892534@perftesting> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org I think you're missing the point. A bunch of statx fields might be useful, but they are not solving the problem. What you need is a separate vfsmount per subvolume so that userspace sees when it is crossing into it. We probably can't force this onto existing users, so it needs a mount, or even better on-disk option but without that we're not getting anywhere.