Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp603546pxj; Thu, 17 Jun 2021 09:33:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJye7ouLQXuyEa/Aq811Ax7Yab9EL/g6lRLCxNJLZ1uk6jdL4DAqVWU7wpg6k4NsPR/epMo2 X-Received: by 2002:a05:6402:18f6:: with SMTP id x54mr4211746edy.53.1623947618854; Thu, 17 Jun 2021 09:33:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623947618; cv=none; d=google.com; s=arc-20160816; b=DzqLNaA8DbNiROnFfSnHBp6yaDGULFwgHLCfAnQXdRIdCj4o2w3XBsvZ6sHUqQg8JR pmDScOQLL3AFIulay0C7efD2DPIZ2QptI/HTBPhRk9792712WXsmNVlHjYOBCRgx3dln RrSpjk4AtBp/sB/gCXgbfgnZi+bGr0eSPuasfHmkldu6STqRIIF2EjX+F0Caz6E7r3pH GXweg0d6xgJj8md6btDBlfuVSPVmsDsOI0CBAWEQv6rqFn/pPfn6Znjzq7l+talHTXqb rkINCfquJ6XjVTMJtUwEBgAANMqfPlE6rfjLs1QTBZBSqV7fg1A5mheYw9aIWC7LchmA lJpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EapT3vh63pjhkWk8H9+mA1mJtnf35my7OcqokMI0/ZE=; b=qaz+r+iXvjCnQILQEyP2zgEBjYRhNbSkg4FT4LDxu5yJPYJvKNTWFmTPPqWk9RCFqP KG3LeD40aP8WxxmyZPiuVtYP6bh2sjrjnW8G466OaCgqwvLOkXVXFYaMctitM4QknLwN Q3Q+NSMit3eYXknNDuxB8vi+VkWZX5ANq1MWlnK+L9fDzP4tXCYdwvXVKu9pC3WWVVkr Szii9+ofgvaK+0K8+z6BVaDdO+mplbmbdWSogLMlXYN2le5lv4TiaSYK7enT3x0GGkKB 97Tvuh0j8StYBHgkl8nyebxhQyirsSiwwA8uMEfbWD99nJGP82KfxsXw46EovZfUtZlW G/SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lf2U+HBB; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jx12si5773645ejc.502.2021.06.17.09.33.14; Thu, 17 Jun 2021 09:33:38 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lf2U+HBB; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232314AbhFQQb3 (ORCPT + 99 others); Thu, 17 Jun 2021 12:31:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:49672 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230269AbhFQQb2 (ORCPT ); Thu, 17 Jun 2021 12:31:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 79A94613BA; Thu, 17 Jun 2021 16:29:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623947360; bh=mJZQV1vxocj7euRW0nT/05QY8fLmBObA9PEvkSXwGbQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lf2U+HBBUGC5z5kAj9MHkK5HIcDDz7Up0PvUr7OeUCUcRar04h4Lc3Gd+yRgPfJH0 2Hi/Pi+0IQXA4diDwHG8bIkqmmaVYowxNLbSmIFcHKgl1mxu6koWmIT/eTjlLAKMst 7P5g8Ydyakv+C3mBPX2AcnZsh6vM7Jy/EysUA4bvy5DynhGcC1rLUa4NV/2nJ/8YV8 p2W7L88KQrXkqQ4aDaEH1hsd4evJuWvtj5PQQDEKZPed8IObhikWe2bNv05Ot1AnjN SoMF+Afdi6x2tubNbWPyIRlBkg3AidNGZOgcBGJu+d7lGY5r/ZMyg0Ylhhsi12qGwG hIQfFYtezV2dg== Date: Thu, 17 Jun 2021 09:29:20 -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: <20210617162920.GQ158209@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210616155712.GC28250@quack2.suse.cz> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 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. --D > > Honza > -- > Jan Kara > SUSE Labs, CR