Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1915357pxb; Mon, 23 Aug 2021 07:37:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfY2+6bL9UtL1DnB32f8l6UB6P0coV8NE7lCWJ4FA/hCtnm5xfoNcz/AIgm00MWIqZ1qRt X-Received: by 2002:a17:906:a0a:: with SMTP id w10mr35728449ejf.416.1629729467843; Mon, 23 Aug 2021 07:37:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629729467; cv=none; d=google.com; s=arc-20160816; b=Y3zbALjX1xMIuqrUaumWfh9A2nxPRcY8MTfOJ8JKs0cvxQf50TGEoJFp1krul1O8lX vdEYfEQN+LHIwoBj1T9nMZjppEIpdW3VMiw4D7VVwMzrnOsXJWQ1h+NTi+CredPuYXGA laVsKHjSuxY4DTNqz6Fr0lfoGLTq+fTZvxcs9GMC1tJQ4N51bAMpAfOYEGlmYzN1Hibm XCt+6o80iCTjLbRS2z0Ij/UcnHiiMWuU8SSNHPXtyYCrpEYlQIHodUoqZqwremtSlQvL PNWjLjn1v55aJpdCmNZ2ccS7/O/inZ+c/P84Mh5sUn+Si04+8vz2oggJEylK0P9itQjj v6Nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:organization:subject:cc:to:from; bh=9Gw/Ir8bbrBpCoYlRYmYNXsKrI5UmeuLbUIBHE18MB8=; b=D1BhdC2RXJ1NQ7urDPav+qjCSLIIUWYU8C6ZngjnrBaL49F791rXVxEly5fvnap9g5 uZr0AKOINdfjO9r43QFtNJ0MiAuSzj6GrbD7E0HNYfbFyZ5akqlOEnTGsSGe05cl6x43 LnMW1y+5qmJTB+46S+gyJiom2cN3FJ+pr6uZvdq4YtL4/WNUlzSTuCcnM9uOFYOXqpOC VUSFGn8rKEpC4gmiubZQTSaHsCe3+Bj4+f9Ln52oQZ3nZVL0i91SQQ142RJGPiHtB/B4 fziKtKGZOeadoLP7SV2U9toZ2qAhmhvWkNvi06OxNJR0DRvuk7vEDo6yOF37gRFm9tyj aQpA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j18si8566124edw.597.2021.08.23.07.37.22; Mon, 23 Aug 2021 07:37:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230346AbhHWOhR (ORCPT + 99 others); Mon, 23 Aug 2021 10:37:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230135AbhHWOhR (ORCPT ); Mon, 23 Aug 2021 10:37:17 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1D6BC061575; Mon, 23 Aug 2021 07:36:34 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: krisman) with ESMTPSA id D7F6F1F42234 From: Gabriel Krisman Bertazi To: Jan Kara Cc: Amir Goldstein , Jan Kara , Linux API , Ext4 , linux-fsdevel , Khazhismel Kumykov , David Howells , Dave Chinner , Theodore Tso , "Darrick J. Wong" , Matthew Bobrowski , kernel@collabora.com Subject: Re: [PATCH v6 04/21] fsnotify: Reserve mark flag bits for backends Organization: Collabora References: <20210812214010.3197279-1-krisman@collabora.com> <20210812214010.3197279-5-krisman@collabora.com> <20210816131536.GB30215@quack2.suse.cz> Date: Mon, 23 Aug 2021 10:36:28 -0400 In-Reply-To: <20210816131536.GB30215@quack2.suse.cz> (Jan Kara's message of "Mon, 16 Aug 2021 15:15:36 +0200") Message-ID: <87k0kc2poz.fsf@collabora.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Jan Kara writes: > On Fri 13-08-21 10:28:27, Amir Goldstein wrote: >> On Fri, Aug 13, 2021 at 12:40 AM Gabriel Krisman Bertazi >> wrote: >> > >> > Split out the final bits of struct fsnotify_mark->flags for use by a >> > backend. >> > >> > Signed-off-by: Gabriel Krisman Bertazi >> > >> > Changes since v1: >> > - turn consts into defines (jan) >> > --- >> > include/linux/fsnotify_backend.h | 18 +++++++++++++++--- >> > 1 file changed, 15 insertions(+), 3 deletions(-) >> > >> > diff --git a/include/linux/fsnotify_backend.h b/include/linux/fsnotify_backend.h >> > index 1ce66748a2d2..ae1bd9f06808 100644 >> > --- a/include/linux/fsnotify_backend.h >> > +++ b/include/linux/fsnotify_backend.h >> > @@ -363,6 +363,20 @@ struct fsnotify_mark_connector { >> > struct hlist_head list; >> > }; >> > >> > +enum fsnotify_mark_bits { >> > + FSN_MARK_FL_BIT_IGNORED_SURV_MODIFY, >> > + FSN_MARK_FL_BIT_ALIVE, >> > + FSN_MARK_FL_BIT_ATTACHED, >> > + FSN_MARK_PRIVATE_FLAGS, >> > +}; >> > + >> > +#define FSNOTIFY_MARK_FLAG_IGNORED_SURV_MODIFY \ >> > + (1 << FSN_MARK_FL_BIT_IGNORED_SURV_MODIFY) >> > +#define FSNOTIFY_MARK_FLAG_ALIVE \ >> > + (1 << FSN_MARK_FL_BIT_ALIVE) >> > +#define FSNOTIFY_MARK_FLAG_ATTACHED \ >> > + (1 << FSN_MARK_FL_BIT_ATTACHED) >> > + >> > /* >> > * A mark is simply an object attached to an in core inode which allows an >> > * fsnotify listener to indicate they are either no longer interested in events >> > @@ -398,9 +412,7 @@ struct fsnotify_mark { >> > struct fsnotify_mark_connector *connector; >> > /* Events types to ignore [mark->lock, group->mark_mutex] */ >> > __u32 ignored_mask; >> > -#define FSNOTIFY_MARK_FLAG_IGNORED_SURV_MODIFY 0x01 >> > -#define FSNOTIFY_MARK_FLAG_ALIVE 0x02 >> > -#define FSNOTIFY_MARK_FLAG_ATTACHED 0x04 >> > + /* Upper bits [31:PRIVATE_FLAGS] are reserved for backend usage */ >> >> I don't understand what [31:PRIVATE_FLAGS] means > > I think it should be [FSN_MARK_PRIVATE_FLAGS:31] (identifying a range of > bits). I'd maybe write just "Bits starting from FSN_MARK_PRIVATE_FLAGS are > reserved for backend usage". With this fixed feel free to add: Thank you, I will address the comment and add your reviewed-by tags. -- Gabriel Krisman Bertazi