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=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no 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 4E09FC433ED for ; Fri, 7 May 2021 00:53:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1DD77610CE for ; Fri, 7 May 2021 00:53:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233366AbhEGAyf (ORCPT ); Thu, 6 May 2021 20:54:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229650AbhEGAyc (ORCPT ); Thu, 6 May 2021 20:54:32 -0400 Received: from zeniv-ca.linux.org.uk (zeniv-ca.linux.org.uk [IPv6:2607:5300:60:148a::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A01C2C061574; Thu, 6 May 2021 17:53:33 -0700 (PDT) Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94 #2 (Red Hat Linux)) id 1leokC-00C2LI-7e; Fri, 07 May 2021 00:53:28 +0000 Date: Fri, 7 May 2021 00:53:28 +0000 From: Al Viro To: Linus Torvalds Cc: Ilya Dryomov , Jeff Layton , ceph-devel@vger.kernel.org, Linux Kernel Mailing List Subject: Re: [GIT PULL] Ceph updates for 5.13-rc1 Message-ID: References: <20210506143312.22281-1-idryomov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org On Thu, May 06, 2021 at 10:51:33AM -0700, 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(). Agreed; -next resolution is not wrong per se, but it's not needed - d_splice_alias(ERR_PTR(e), d) == ERR_PTR(e) for any e in -4095..-1, so the variant of resolution in mainline merge will do the right thing.