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 7C19BC43217 for ; Wed, 16 Nov 2022 17:43:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234852AbiKPRny (ORCPT ); Wed, 16 Nov 2022 12:43:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229617AbiKPRnw (ORCPT ); Wed, 16 Nov 2022 12:43:52 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3BE1205EF; Wed, 16 Nov 2022 09:43:51 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A8C93B81E2F; Wed, 16 Nov 2022 17:43:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7BD2EC433C1; Wed, 16 Nov 2022 17:43:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668620629; bh=2Rr069LAz98mXWOCBRygJOpq9srh9YH+T/Kx1QG1dcI=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=YuC832qSDYiB2R+JDhGGQZFQDZJ4IzVPMcRVI44YJFUcH6ZkChzqKqU/qNP6DKHf4 wnj7NdYS6oXel8SucaJKh4mbbZ6CcYSpY6CNbn/dBBkFJPDwG/gq0wNkHFomZhhzRy uxc+FhSTEz2ONm1ASwbyUu4/ul9pGgFFIErESrhOewZfHaDXdudI9EpG/WR2GM6VLe jRofzCFMT/OdbceRmCNL5+H00EO+t5uv8FzxIBhwvdRALidFYhwuv3Va9lVnJgnWaS SY6LnePRO1lqFs+ZGzzDbY9+V2HbZoE6zn+325necCurg1oTIHKa32WLv+/QHfyV4k AbdBjWihX608Q== Message-ID: Subject: Re: [PATCH 1/7] filelock: add a new locks_inode_context accessor function From: Jeff Layton To: Christoph Hellwig Cc: linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, ceph-devel@vger.kernel.org, linux-cifs@vger.kernel.org, chuck.lever@oracle.com, viro@zeniv.linux.org.uk, hch@lst.de Date: Wed, 16 Nov 2022 12:43:47 -0500 In-Reply-To: References: <20221116151726.129217-1-jlayton@kernel.org> <20221116151726.129217-2-jlayton@kernel.org> Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 (3.44.4-2.fc36) MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Wed, 2022-11-16 at 08:08 -0800, Christoph Hellwig wrote: > On Wed, Nov 16, 2022 at 10:17:20AM -0500, Jeff Layton wrote: > > - ctx =3D smp_load_acquire(&inode->i_flctx); > > + ctx =3D locks_inode_context(inode); >=20 > Nit: this might be a good time to drop the weird double space here. >=20 > Otherwise looks good: >=20 > Reviewed-by: Christoph Hellwig Fixed the nit in my tree. After sending this, I converted locks_remove_file to use the helper too. I also think we probably need to use this helper in locks_free_lock_context. Folded all 3 changes into this patch, and pushed to my linux-next feeder branch. Thanks Christoph! --=20 Jeff Layton