Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1003906iol; Thu, 9 Jun 2022 20:23:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUyyGPnxVj8a7bKmwNiEgZ4PbnfuW8eXr/DzGyOC8SoIbZAs4PiwTR6LvLhhPvv6lUKSHm X-Received: by 2002:a17:903:44c:b0:164:113:a433 with SMTP id iw12-20020a170903044c00b001640113a433mr42116598plb.163.1654831413137; Thu, 09 Jun 2022 20:23:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654831413; cv=none; d=google.com; s=arc-20160816; b=RcsQbQfHxyG3pDGl9QhgRDG1eYmYHhH2LjTrTmDJqyquVLZybzeQkz7rHoe3+QZ01G +e7wp9GTTVEElJG/AnyX70OIuiPSX5E6lfy1+YxXSEDugD+YVrMU82hAg7YYaSeI8s82 yapsi/A81q93sHpDbddsDqq38KKRXEmq7TK1D3ZEb1kfBkFpac/gOJ2JxAMgY7/9LCMJ FBV6USJfXKCcaProYN0366sWQRxh6ctq8qNK/w/qps+rjEpC6ZMHZ240l+5zo8bmpPNr BEvzi798vpyEL5QuKPn1d2K87cTKQ86wCiebXYq1yLXeL7A2CUuMcnc7ujz61kdh9LU5 BoLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from; bh=gshyxlN1cTEJmDh4TLbfC5r1q82nIPTSTnuH5R9TmWc=; b=M//g3bUjFpLQyt/3tqzc2KL3nNceF5C8GP+Vk6w95p8Do08k2VLDbJpgCMcN+G6siu V1G834l5URsS+xSZh9X3encP/GBoGNzjpxZz4LpAMbyPaxWbY5WSaNhhrVoAVbX8O+T9 yV+ZpGqfQDsKHX6vg7wAzZUTahrchtNpO18WT/+YoVXBl+LJrpym2VunmM3E7ICK8FC6 7DC58HZqVAJY6iAHU103F5edJAmK6JuL19f7eshPGPo7C4V5P+imFc1x0ifD771ZPAwo 13xDCcgYnxxQz24QEOGoAvrn4v0UY6So8Ewzqc4r7q2hEgaSNNTsj8TdChwZqXz+WhQb sAjQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k62-20020a638441000000b003fe24375d50si10075547pgd.653.2022.06.09.20.23.19; Thu, 09 Jun 2022 20:23:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242009AbiFJDRd (ORCPT + 99 others); Thu, 9 Jun 2022 23:17:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229833AbiFJDRa (ORCPT ); Thu, 9 Jun 2022 23:17:30 -0400 Received: from mail.parknet.co.jp (mail.parknet.co.jp [210.171.160.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 04F063B1726 for ; Thu, 9 Jun 2022 20:17:28 -0700 (PDT) Received: from ibmpc.myhome.or.jp (server.parknet.ne.jp [210.171.168.39]) by mail.parknet.co.jp (Postfix) with ESMTPSA id C830E2051591; Fri, 10 Jun 2022 12:17:26 +0900 (JST) Received: from devron.myhome.or.jp (foobar@devron.myhome.or.jp [192.168.0.3]) by ibmpc.myhome.or.jp (8.16.1/8.16.1/Debian-3) with ESMTPS id 25A3HP4Z017165 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 10 Jun 2022 12:17:26 +0900 Received: from devron.myhome.or.jp (foobar@localhost [127.0.0.1]) by devron.myhome.or.jp (8.16.1/8.16.1/Debian-3) with ESMTPS id 25A3HPaZ089403 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 10 Jun 2022 12:17:25 +0900 Received: (from hirofumi@localhost) by devron.myhome.or.jp (8.16.1/8.16.1/Submit) id 25A3HOUk089401; Fri, 10 Jun 2022 12:17:24 +0900 From: OGAWA Hirofumi To: Javier Martinez Canillas Cc: linux-kernel@vger.kernel.org, Peter Jones , Alexander Larsson , Colin Walters , Alberto Ruiz , Muhammad Usama Anjum , Lennart Poettering , Chung-Chiang Cheng , Christian Kellner , Carlos Maiolino Subject: Re: [PATCH v5 3/4] fat: add renameat2 RENAME_EXCHANGE flag support References: <20220609093638.664034-1-javierm@redhat.com> <20220609093638.664034-4-javierm@redhat.com> <878rq54pf1.fsf@mail.parknet.co.jp> <9d837076-f666-c3c3-dd09-5c3705da23e6@redhat.com> Date: Fri, 10 Jun 2022 12:17:24 +0900 In-Reply-To: <9d837076-f666-c3c3-dd09-5c3705da23e6@redhat.com> (Javier Martinez Canillas's message of "Thu, 9 Jun 2022 22:36:21 +0200") Message-ID: <874k0t437f.fsf@mail.parknet.co.jp> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Javier Martinez Canillas writes: >> >> Looks like unnecessary complex (and comparing raw i_mode, not S_ISDIR(), >> better to change before make dir dirty). How about this change, it is >> only tested slightly though? Can you review and test? >> > > Your change looks good to me and indeed the logic is simpler than in mine. > > I've also tested it and AFAICT it works correctly as well. Do you plan to > squash this or should I respin a new revision of the whole patch-set ? If > you want to post it as a follow-up I'm also OK with that. Could you merge to your patchset, and re-send? Thanks. -- OGAWA Hirofumi