Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp575432pxj; Wed, 16 Jun 2021 08:51:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyf7S1NkgJ7eA0OaHFa+ODTi83ASBzE8N8lL3FoyHLkGjf9vAyU0LcD4w0QQZRk2lMgMWUq X-Received: by 2002:a17:906:546:: with SMTP id k6mr183935eja.53.1623858683139; Wed, 16 Jun 2021 08:51:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623858683; cv=none; d=google.com; s=arc-20160816; b=cIsEY9qC6d1Av7EmK2ezngJRdmx0z+20VKJ94dLAO68lVTkc01yBgtIVyVn7DQv6To D0zYxK53mk1zxrg3eVikaVqb6crClZ5WZWfAUgY7+vhKxJk7VtdpxvXKiQT8IQXTC0LX Wi4xm8jxoGPgxCoy/0Fe1hwqnL4n7/ZbuGK4eHVPVtPauf6qDY7Cjp97l7SjIRAclZDR TavPLvxWe/OFlpmCLthdRstedxyDrUrHMj7ZFgzL8fpmmkqOofblZ/y53/HpcsGaTHYF 10fAD82aaDfCiXAhoKk4HW8y21fj9MvzC0oVZKhw+HQeNzMZjOLK1Ejh/qJJyeEIAiPm XvcQ== 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=+htH99SFU1rmFKZ2VaNhlf/2ZMxeOPC6APaQGNynreo=; b=wKv1B8DmAZJNJVps1IIk7ND5QHY0B8Xt1lsk7aCKIhK45aO4agp6zTu3l6uwKlo9Hl t01o31nthGyDA77LFgdvMuQ8z5lfjDeIdkwX38rFUnnLtgMh9Tevcs7PLS2Is0NdGIOB XyDZGotXhi45P5Gv4lrmwR6bGpCV8JS/g/Ed20x3QL4q8Z9RI/czqX5Q4lH/QTIx/2zg vPRkLAv3788pvo6oDfUj8IyNkCvN4fwEomlqK8G2LxSqfXBUDLxVfg0uaAzNmF/bI6HP Ox0+0BjhFApHF+23HorxoqCXj0p3medtqyT6PTxxHQtYGIRKpFqk68RKpaex6EgxLH7X dUFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cm9BcOlm; 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 s18si2277302eji.655.2021.06.16.08.50.55; Wed, 16 Jun 2021 08:51:23 -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=cm9BcOlm; 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 S235253AbhFPPtz (ORCPT + 99 others); Wed, 16 Jun 2021 11:49:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:59128 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235829AbhFPPtM (ORCPT ); Wed, 16 Jun 2021 11:49:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AE66F61027; Wed, 16 Jun 2021 15:47:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623858425; bh=OHnFfLs1QbSWuvd+00QSmxA7rj2+r71j9JxqIC1dccs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cm9BcOlm6gd25cL9Pa/hoPc8RYWVSw4N7Ny2T14PC0IS5cEEKEAGVJSkSivywsUMG u1I+5M+S3w4H9xm0XXvSaG/eYLypq966O1/gB/og7CP7v7LQfI0gmF81TfvWwHMulQ +8ZHAH7F+vVf9Jsx0tkuGVjciUErP0ANSrnHaR1QB7uXaz8hX8talAwZMqD/4nt/vg uXS6pjhRhAVPdC8/OKpqsAtGsOM3IHzZ4cHjKAt/AJrAXmYYUf4ECPGbYh3tScVu1X oAjQegVZuY98P7j8xq+U+nKaGh+CfwxlZjVcSTxYrIsY3RStpHq5x4KYVvrcVtoI1E c9FsYX78QhScg== Date: Wed, 16 Jun 2021 08:47:05 -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: <20210616154705.GE158209@locust> References: <20210615090844.6045-1-jack@suse.cz> <20210615091814.28626-7-jack@suse.cz> <20210616085304.GA28250@quack2.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210616085304.GA28250@quack2.suse.cz> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 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. --D > > Honza > > -- > Jan Kara > SUSE Labs, CR