Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1580534imm; Thu, 12 Jul 2018 04:32:14 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc7QztV5h9Y0BuAhS9V2aQ3yIaeGP/ReNgkdrTW8EMfNmzzfSRq1URtLE9n/GEcKYpwV+2S X-Received: by 2002:a63:8f53:: with SMTP id r19-v6mr1733693pgn.17.1531395134470; Thu, 12 Jul 2018 04:32:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531395134; cv=none; d=google.com; s=arc-20160816; b=uWA9HeKGKmmDrfmgS03+yu1UwUf3764aKgiqPLEY93ptBKL3shSdPhR1vXZaE/mMSO eY0gLwRbDAFgtdohTMyuEKyXadrXSn6UChaI9Zg/3V6R7e52f/7MTHidZimLJ3m+Sl1i 5VsXK8Q6m9Tr8NxsTZlUhlvWb3q3ufDkC22AN95JVqkNjP7b0xWzRcJIA5sK5ZqtW6LT RRfBNkYJS67FfbbxzIKDjArmC3BnzrC8FHfSwbUp1h4YDjIqg/cbl5/yHT5UxFQlR2p2 BP2P7BMiZAiNr+k6+wYFEF8siqtrlzWMkwUIVRv9QfyciLG2rKsPOdS4cmojyUbdtMTb BrSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=w7ga70c6BQCiQ9g0KtS2oeqp17JbFntV0SeZgniS+Qk=; b=zqvF0LWJAgz7d1MLw40AEbsSwWxRbsx40Sf73MR3YSHQGntomb/G9QhCaZyK56DSAo 6WS1oJRsj6JJtU2eWB9NRZiPo1ldfyvs5smxELMwB0yD55G+jdm03Olhr2pGmhv6uT/8 I0gO9XEHcKlAULjBotz15F/S/0c1ms9R0Jo22UvqGxZ/3a5gNvMOYh5p+x1Ap6a1n3LC rcUEdR5CkFJKi3LVfEmPINPUm9viKUTN2+GC77pyoDkaB5469TbtcHCIdIDJkVNM2hhN 1R8cJY1GRsxlIdpoJcCH/Ho5yIKJv/r3c4cbEgM5BvmEe+dlRh7VmA5bgHERul1C7AT6 NBsw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k7-v6si19747001pgq.548.2018.07.12.04.31.59; Thu, 12 Jul 2018 04:32:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726812AbeGLLkV (ORCPT + 99 others); Thu, 12 Jul 2018 07:40:21 -0400 Received: from nautica.notk.org ([91.121.71.147]:59199 "EHLO nautica.notk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726534AbeGLLkV (ORCPT ); Thu, 12 Jul 2018 07:40:21 -0400 Received: by nautica.notk.org (Postfix, from userid 1001) id ABCF4C009; Thu, 12 Jul 2018 13:31:11 +0200 (CEST) Date: Thu, 12 Jul 2018 13:30:56 +0200 From: Dominique Martinet To: Matthew Wilcox Cc: v9fs-developer@lists.sourceforge.net, Latchesar Ionkov , Eric Van Hensbergen , Ron Minnich , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v2 3/6] 9p: Replace the fidlist with an IDR Message-ID: <20180712113056.GA23286@nautica> References: <20180711210225.19730-1-willy@infradead.org> <20180711210225.19730-4-willy@infradead.org> <20180712111726.GA17774@nautica> <20180712112333.GA15277@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180712112333.GA15277@bombadil.infradead.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Matthew Wilcox wrote on Thu, Jul 12, 2018: > > Ah, I had missed that you didn't update this memset as you said in reply > > to comment on v1. > > Rather than update the memset, I ... > > > Could you resend just this patch and either initialize fid->fid or use > > kzalloc for the fid allocation? > > > > > + fid->fid = 0; > > Did that instead ;-) > > If I were going to initialise the entire structure to 0, I'd replace > the kmalloc with kzalloc and drop the memset altogether. Oh, I'm blind, sorry! :) > > If you do resend, alignment here was wrong. > > I think this warning from checkpatch is complete bullshit. It's > really none of checkpatch's business how I choose to align function > arguments. > > That said, if you want it to be aligned some particular way, feel free > to adjust the whitespace. I don't care. I would tend to agree that sometimes checkpatch is overzealous, but having worked on projects where code style is all over the place it really feels much more comfortable to have a consistent style everywhere. Thanks for the permission, I'll adjust it (assuming this does end up getting pulled from my branch, but nobody yelled so far) -- Dominique Martinet