Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp336257pxj; Fri, 7 May 2021 09:40:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFEadYmoFfj5i2hF0dYboHfPxwoaxw7uEQyV1vCfD6L3Zgt0bb0WUciUMSUMWG5fndJKMh X-Received: by 2002:a17:90b:4a81:: with SMTP id lp1mr11499391pjb.226.1620405642896; Fri, 07 May 2021 09:40:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620405642; cv=none; d=google.com; s=arc-20160816; b=yFiDXz4mdzrtUQs0t/lb8ZYU9KhPIZDkaOKIC2yEfqea+QXEd6Bnafx2zZCWPM5uhm qo/M+XoAqsAgI5viesNxMmKeKRt3QxEUZ5VI5KHhIkn5PBM0i4QOW0Diy9TKQGOpXOjz gsMOeuPmljm7dGetZjQHMUs+Vtw47pqKgwpeGalas3xex6n34ehHpRxJFXtnHQWbXp0c 5L5yKIigXwwG7vmUnDrF3TtUxVFwycqN7Qcqs66k06rtTTrKsX9BsZJnlweA2ipiugVW krNpX6cC3xcnsEIkoe/O3gWxUHDkaJSRJRPZ7k7i5pGUW7QWkFY9ko7W8xRwNqi+69Vb Y5HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=Ato6SNovt1iTFrta+hpc9jPjSIKNkkzrtQIPXXFE4kQ=; b=0+dGVkOIdZpDCvSdiHAI/NqqL8Aj7ouX6SNii0f53ISnms1tKe8g8dy4CICjFi1kyb c+3h/jkTCs3ZnMck0hSwU1R0X/Y+prT3vRqF7s103xyuyxm5aAi6HkE8TmYXVWrOTa/o J3/rGIidFXpk9CphMruLIT9C02ztcpuJ5VWUML0g6EsDmamGUGJppepcsWFsuaemI4R6 mK8+8YrQAw1INnUJr9QO7t9vl8kZxTk9LImmnUrCXr7/WSp2PS+TOMCah4niGrQtQnjl s5S45PSJw6CmtWR9iBaMxlcgqLXXEXWFVNc8MLyO97CzD7wuIUNOzG1doBSsf6mfTCFu 6Saw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=r6fXq83T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 d19si8502636pgb.316.2021.05.07.09.40.27; Fri, 07 May 2021 09:40:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=r6fXq83T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S236405AbhEGM0j (ORCPT + 99 others); Fri, 7 May 2021 08:26:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:53288 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233468AbhEGM0i (ORCPT ); Fri, 7 May 2021 08:26:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 070056144F; Fri, 7 May 2021 12:25:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620390338; bh=KuVLhEfV0ciN/BcCKW+Oyow/J6rlhH733GXNmUgWCio=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=r6fXq83TVESWco0XzXwtE1O8JQlHpg2HQdMYMqc6IQqYnhgXg8qNAoj1AjQI/cwJr nHUxUYJVOwkmk8iuP8CTU6CNOsexeH/PX4rtbtw0ima1eJ6SaqhnPf/wZnKwEfxzWe iT6Eei8emZJx9kZah3YEEhWEcXMGkTWhN53VWXjkJFjWl091e8cU3vJiW0LtM3PV++ 9Tu8MwV4Rvh6sCGSOEpt7ZnHf9Y+2H6fXFfrGRvZQkWhxT2eFYbbPJfsc5PXiUZy5j kl872pIG1xqSWg/PZFO3o9chP+khHxWGKWgc9Xhtq5Cdn3nXFy2e2pXev1MNLqZIvV vt9PYpGYnc+FA== Message-ID: <0064b4356a556c52c6d6dcf685fc837275ad55b3.camel@kernel.org> Subject: Re: [GIT PULL] Ceph updates for 5.13-rc1 From: Jeff Layton To: Ilya Dryomov , Linus Torvalds Cc: Al Viro , Ceph Development , Linux Kernel Mailing List Date: Fri, 07 May 2021 08:25:36 -0400 In-Reply-To: References: <20210506143312.22281-1-idryomov@gmail.com> Content-Type: text/plain; charset="ISO-8859-15" User-Agent: Evolution 3.40.1 (3.40.1-1.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2021-05-07 at 11:03 +0200, Ilya Dryomov wrote: > On Thu, May 6, 2021 at 7:51 PM Linus Torvalds > wrote: > > > > On Thu, May 6, 2021 at 7:33 AM Ilya Dryomov wrote: > > > > > > There is a merge conflict in fs/ceph/dir.c because Jeff's inode > > > type handling patch went through the vfs tree together with Al's > > > inode_wrong_type() helper. for-linus-merged has the resolution. > > > > Actually, the linux-next resolution looks wrong - or at least > > unnecessary - to me. > > > > The conversion to d_splice_alias() means that the IS_ERR() test is now > > pointless, because d_splice_alias() handles an error-pointer natively, > > and just returns the error back with ERR_CAST(). > > > > So the proper resolution seems to be to just drop the IS_ERR(). > > > > Adding Jeff and Al just as a heads-up. > > I did it mechanically and then cross-checked against Jeff's patch: > > https://lore.kernel.org/ceph-devel/20210316203919.102346-1-jlayton@kernel.org/T/#u > > I guess neither Jeff nor I noticed that ERR_CAST() is redundant > because previously ceph_get_snapdir() didn't have any error handling > and the explicit check (which Jeff added in another patch that went > through Al's tree) felt "precious". > Yep, I missed that special error handling too. The final fixup looks fine. Cheers, -- Jeff Layton