Received: by 10.223.176.5 with SMTP id f5csp1965976wra; Wed, 31 Jan 2018 14:24:44 -0800 (PST) X-Google-Smtp-Source: AH8x2255whw5a6bYnLhTsDstebBFHctEzaZxPuXGQxykHHhpoxPKj1VujLz04Nts4ty2O+q/njkh X-Received: by 10.101.82.134 with SMTP id y6mr28586887pgp.101.1517437484199; Wed, 31 Jan 2018 14:24:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517437484; cv=none; d=google.com; s=arc-20160816; b=Ic86ERS8Xg2sHqbEIXzFUojVH9wfW2ANNR3eyn/zLZV3mgc1MFfT2NhcgXH3I485Ez y75xogh+egpoAZ0A20ZpHJlpNMy7GTdoM9/UM4wKqam89MwMzRoBOwa2dJMlVn4APSja Hno9UZ6bMyffGp5KBOiXeqNXHNJSZVWVWffGjh+8ZqC5V6+KN9CcyxOEqhpxTTMzgnWM yiDTVS2Qq5tLNU7kJ7rCFBjs40GiRcpd/Bm0dm7U5pB7DnmIjr9vUDirEFcxaZ2Ghslb Q7wvkw7RUiwHugD+km1dBgG28gxY9TqEGLZRzb4/3VOUo2WpEaYUn32RpfjN3nDUwmqq KmGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:reply-to:dkim-signature :arc-authentication-results; bh=huQyV4kz8GlsTZQrLcXXziHffSwjmzrwyBkfiOIjOFE=; b=s3FthI+e1RscgNdQ+I52iEyBCcmzXqCiFQa6pQkcPZf616N5WP34KDZ6p4CvHBsdVv hUZeX/Jx6WHw1fv7kOhDJB40O6AVhEuO8div8QntApFqUTw//QUBfEspAHNmywkKKC9M Vw+8JONE1SLSDcXMbnVVFIOcTuQmQRKx9VQU/YnWH6nTFf6wIy4dsmB/qZhPv/hEPeOC 9dBCerFdGBnsQHTapqybrnIFpzMaoorQuAQ2mNfAb+J5F/7uzX4zH0o9tQ6mY8w1rOyc mfCtrXaDM//i8KwB4RGCZBhubBPeh75Ipc8rnqLwoWrvZ18jpeT4wLSPoSYtbqgnsxSR tvAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@libero.it header.s=s2014 header.b=qNL9FgfL; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=libero.it Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o30-v6si690691pli.282.2018.01.31.14.24.28; Wed, 31 Jan 2018 14:24:44 -0800 (PST) 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; dkim=pass header.i=@libero.it header.s=s2014 header.b=qNL9FgfL; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=libero.it Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751679AbeAaWX7 (ORCPT + 99 others); Wed, 31 Jan 2018 17:23:59 -0500 Received: from smtp-18-i6.italiaonline.it ([213.209.14.18]:44746 "EHLO libero.it" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751360AbeAaWX6 (ORCPT ); Wed, 31 Jan 2018 17:23:58 -0500 Received: from venice.bhome ([84.223.211.21]) by smtp-18.iol.local with SMTP id h0nLeddFZ5jm8h0nLev3Wi; Wed, 31 Jan 2018 23:23:56 +0100 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2014; t=1517437436; bh=huQyV4kz8GlsTZQrLcXXziHffSwjmzrwyBkfiOIjOFE=; h=Reply-To:Subject:To:Cc:References:From:Date:In-Reply-To; b=qNL9FgfLZSOKVdXwb+hHjJjiaJeZ64EmVL4XENqbhMGY4u7ll/nI57gZbxsY4i0t5 QlPO69VfXQX7RVLXAhwv0igR0U2jF9fhjdi14GBW+MXo5F0QAbarRcRLwayG+PjqP9 W4m/CpHclU+kQ6DcCNy/Ct+YyMbtUN4iNichz50emASrM+IZIKJ6bwJ8GLDixWe12g 9FH3pMzpIOFXxLaHckMrhvF+ONSSkbOPThRPO+Tp736FlRNz1+KnmNlz5diqqmAoV7 DI4pZ8Ooub0sDypszx6zVKKosorHV5dhrHRQjIiD2+arSgghs88w2KYHHNs98tbsZq Xw4A3n6VV6QxQ== X-CNFS-Analysis: v=2.2 cv=cZCiljLM c=1 sm=1 tr=0 a=XeJ7lniyEEjQtHijZ6FjDA==:117 a=XeJ7lniyEEjQtHijZ6FjDA==:17 a=IkcTkHD0fZMA:10 a=-hwUz_SmDC9gzLOuhQ8A:9 a=QEXdDO2ut3YA:10 Reply-To: kreijack@inwind.it Subject: Re: [PATCH] Rename inode_cmp_iversion{+raw} to inode_eq_iversion{+raw} To: Matthew Wilcox Cc: Jeff Layton , linux-fsdevel , Linux Kernel Mailing List , Goffredo Baroncelli References: <20180131204309.32474-1-kreijack@libero.it> <20180131215509.GD28275@bombadil.infradead.org> From: Goffredo Baroncelli Message-ID: <77e08780-5f8b-5efd-d92d-c633f7b277a6@libero.it> Date: Wed, 31 Jan 2018 23:23:55 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180131215509.GD28275@bombadil.infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfEbNe7LlNjmwBJU3nhG26bnEAkIcOmD8WiWExTyTg+laQW34Rpng1TqBcuXU1wyu+klVZMsGBLYTuENljcEROfFErSEdBs7f0e83KlCouNJVr6ZyNq3C AQdoCcAbb4Im4dFB8LI2LgyLE5MltMpWdaWR3TZ2zknI3vu78ulMyLpckjYCGGWoLbHaQPG6vbgj/M0/XDPkhKk2kgmoUJl7iF5Zu5TafF9B8SgJcglxlR7O MSiaxfYKMySpus2xe3N3VMZ446Cpu4NrTaMrtKrYlr8boLHfWwV3RaOrdIkxO/7YW44pkpyArrwOZPDPYJMJQg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/31/2018 10:55 PM, Matthew Wilcox wrote: > On Wed, Jan 31, 2018 at 09:43:09PM +0100, Goffredo Baroncelli wrote: >> The function inode_cmp_iversion{+raw} is counter-intuitive, because it >> returns true when the counters are different and false when these are equal. >> >> Rename it to inode_eq_iversion{+raw}, which will returns true when >> the counters are equal and false otherwise. > > A lot of places use !inode_eq_iversion(). I think we should have both > inode_eq_iversion() and inode_ne_iversion(). A function is needed because before doing the comparing, a "conversion" is needed. My feeling is that the positive "form" is the more natural. And the notion "!*eq*" is intuitive as the "*ne*". > > Also, we have 'inode' in the name, why keep the 'i'? inode_eq_version() > and inode_ne_version() are shorter. We could even go so far as > iversion_eq() and iversion_ne() if keeping 'iversion' in the string > is important. All the functions introduced by Jeff are in the form inode__iversion. So for consistency, inode_eq_iversion() makes sense. > -- gpg @keyserver.linux.it: Goffredo Baroncelli Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5