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 X-Spam-Level: X-Spam-Status: No, score=-11.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EC83DC49EA4 for ; Thu, 17 Jun 2021 16:32:05 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6FFF0613E7 for ; Thu, 17 Jun 2021 16:32:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6FFF0613E7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 08DEB6B0073; Thu, 17 Jun 2021 12:32:05 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 03E406B0074; Thu, 17 Jun 2021 12:32:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DE5D46B0075; Thu, 17 Jun 2021 12:32:04 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0057.hostedemail.com [216.40.44.57]) by kanga.kvack.org (Postfix) with ESMTP id ACD856B0073 for ; Thu, 17 Jun 2021 12:32:04 -0400 (EDT) Received: from smtpin39.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 49573824C425 for ; Thu, 17 Jun 2021 16:32:04 +0000 (UTC) X-FDA: 78263757768.39.7FE2A42 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf20.hostedemail.com (Postfix) with ESMTP id 772FF54C for ; Thu, 17 Jun 2021 16:31:49 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 004F760C40; Thu, 17 Jun 2021 16:32:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623947523; bh=Y9MAkFl/jnxhmbGYvknaytrWo1sMhzoDXlpyvDJDLcI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=p1laN/brbSgTDibxAQsTLRdkRN1MnOew8tSgdgKlVCVI1MlEEp0L2hf9ikKetvaC4 uAgyrjowzm3LPxP/J+eYqNIucqkz0C/S3fiHpcih0eSCHg6B11tohcBFVkMZHtKhTm l6BPc1pt3LwR2/XCYAVMVdMD/rgSdXONuFnWdar8RvHsBC5EXWSMBQ3a8FJSsm+lj/ E0OJ3YtI8D4CVDXkemlPhdYj3nnnWMruPPmhm0sKGiemcFZo/CPWeA8a+MqOgVJovq a2w24VN/WMnn2gVQgd9XAl+SCK74GV7QGWtqz0qQwCZ5ENt0n3IvCmmHSGIt9zYbjZ X+UHvUa1UU8aw== Date: Thu, 17 Jun 2021 09:32:02 -0700 From: "Darrick J. Wong" To: Jan Kara Cc: Christoph Hellwig , linux-fsdevel@vger.kernel.org, Dave Chinner , ceph-devel@vger.kernel.org, Chao Yu , Damien Le Moal , "Darrick J. Wong" , Jaegeuk Kim , Jeff Layton , Johannes Thumshirn , linux-cifs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-mm@kvack.org, linux-xfs@vger.kernel.org, Miklos Szeredi , Steve French , Ted Tso , Matthew Wilcox , Pavel Reichl , Dave Chinner , Eric Sandeen Subject: Re: [PATCH 07/14] xfs: Refactor xfs_isilocked() Message-ID: <20210617163202.GR158209@locust> References: <20210615090844.6045-1-jack@suse.cz> <20210615091814.28626-7-jack@suse.cz> <20210616085304.GA28250@quack2.suse.cz> <20210616154705.GE158209@locust> <20210616155712.GC28250@quack2.suse.cz> <20210617162920.GQ158209@locust> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210617162920.GQ158209@locust> X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 772FF54C Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="p1laN/br"; spf=pass (imf20.hostedemail.com: domain of djwong@kernel.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=djwong@kernel.org; dmarc=pass (policy=none) header.from=kernel.org X-Stat-Signature: 355rgqjxphp1jdryyy6xfiahnsej4mmg X-HE-Tag: 1623947509-103770 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Thu, Jun 17, 2021 at 09:29:20AM -0700, Darrick J. Wong wrote: > On Wed, Jun 16, 2021 at 05:57:12PM +0200, Jan Kara wrote: > > On Wed 16-06-21 08:47:05, Darrick J. Wong wrote: > > > On Wed, Jun 16, 2021 at 10:53:04AM +0200, Jan Kara wrote: > > > > On Wed 16-06-21 06:37:12, Christoph Hellwig wrote: > > > > > On Tue, Jun 15, 2021 at 11:17:57AM +0200, Jan Kara wrote: > > > > > > From: Pavel Reichl > > > > > > > > > > > > Refactor xfs_isilocked() to use newly introduced __xfs_rwsem_islocked(). > > > > > > __xfs_rwsem_islocked() is a helper function which encapsulates checking > > > > > > state of rw_semaphores hold by inode. > > > > > > > > > > __xfs_rwsem_islocked doesn't seem to actually existing in any tree I > > > > > checked yet? > > > > > > > > __xfs_rwsem_islocked is introduced by this patch so I'm not sure what are > > > > you asking about... :) > > > > > > The sentence structure implies that __xfs_rwsem_islocked was previously > > > introduced. You might change the commit message to read: > > > > > > "Introduce a new __xfs_rwsem_islocked predicate to encapsulate checking > > > the state of a rw_semaphore, then refactor xfs_isilocked to use it." > > > > > > Since it's not quite a straight copy-paste of the old code. > > > > Ah, ok. Sure, I can rephrase the changelog (or we can just update it on > > commit if that's the only problem with this series...). Oh, now I've > > remembered I've promised you a branch to pull :) Here it is with this > > change and Christoph's Reviewed-by tags: > > > > git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs.git hole_punch_fixes > > To catch-up the list with the ext4 concall: > > Dave Chinner and I have been experimenting with accepting tagged pull > requests, where the tag message is the most recent cover letter so that > the git history can capture the broader justification for the series and > the development revision history. Signed tags would be ideal too, > though given the impossibility of meeting in person to exchange gnupg > keys (and the fact that one has to verify that the patches in the branch > more or less match what's on the list) I don't consider that an > impediment. > > Also, if you want me to take this through the xfs tree then it would > make things much easier if you could base this branch off 5.13-rc4, or > something that won't cause a merge request to pull in a bunch of > unrelated upstream changes. Oh, and also: Please send pull requests as a new thread tagged '[GIT PULL]' so the requests don't get buried in a patch reply thread. --D > --D > > > > > Honza > > -- > > Jan Kara > > SUSE Labs, CR