Received: by 10.223.176.5 with SMTP id f5csp1934603wra; Wed, 31 Jan 2018 13:57:09 -0800 (PST) X-Google-Smtp-Source: AH8x225HUa2eTwcyawn4gg9sQlSblTxeL31ZliKbmE+wOj040KkwLQ6QghtmgVq8w+By+kOU2XSt X-Received: by 2002:a17:902:a588:: with SMTP id az8-v6mr5442670plb.10.1517435829588; Wed, 31 Jan 2018 13:57:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517435829; cv=none; d=google.com; s=arc-20160816; b=SDcFYtmcTvRcc5/G85Tpcz229qGD+uP0JPnT+Fcj5FnQtA/cXzATLQw4Oe+NkCipbx hv5rGycrsJwgDwAaoGZPjfb7MaG/3HaQ36jAEpZ9n5fMv7EwAFb3BoLcbdil52rXxsXY HD2dk5G+2LPTtS4VzpDs90TET+tkrNt6HjL0vx5okszMIeervsUJLATOfvwwuncWPfeW rkqqn4K9jCddpRXn+jnNTI2rfFEhqfilpsOk8tO69eIsQAkFm0jydrUt19qeCMxwy6U4 U1uIqZ2Lg+VJXV24WqhWP7V4OidJVP4GcntUzwQ/l/kocJn9tbVvpK/Zhd/6mTnfIO7m 0JcA== 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:dkim-signature:arc-authentication-results; bh=WnFy5jKAqAhPx5I17lB7JqHwukfMcpL3PUh9n1qkfOI=; b=Dst/cIr3Le28iy7h1sjSSj9FyHM1i97rdtO6vTIpnyzTjSiMZg0LKVHtrwXRzftSOa K9vl8XBUPwx3lg+k8NX/u9jvKwT+HIwctKb/TGfFBzkfB2SE/eK5jHs3J3nvHiDm7Zju RypUFIBuIPAUStfOTZG+3Qcc50LVnANyHEAiS82TLNVjuGOYYNMQtvMnKsrTf7UL/WCy nMpyYTTQlZrkI4/4GA/KJqhQRFv2yHh8FGbn4Fsf/RGGFIu1zRBPae1Km4SqutHqiN75 KQFdZvxmCAvPKU4jFUn5DG944CQqwMIPJcG9fgLtE1zPUbnh8tgWxfgl3/PWBYRuoIqP /uRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=s9q5nGTl; 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 z61-v6si2780778plb.669.2018.01.31.13.56.54; Wed, 31 Jan 2018 13:57:09 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=s9q5nGTl; 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 S1753353AbeAaVzL (ORCPT + 99 others); Wed, 31 Jan 2018 16:55:11 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:56027 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753240AbeAaVzK (ORCPT ); Wed, 31 Jan 2018 16:55:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=WnFy5jKAqAhPx5I17lB7JqHwukfMcpL3PUh9n1qkfOI=; b=s9q5nGTlfsK4+XoucSN4AMqH/ 6RUMVamXwT/RUAxtPeogOQZES002XPmlEFhX2xsUcRZRZwTgGA8ZUKD8u28Yyv4Wek32fX5qniFuh z+wW5gqEZlWZEhJiN7phkMnaJ+FMGvJ6NOmUZcjYob+LqdQEtcfQHTN+jr/dklFI8xpO+D+XZBBA9 pleHVisHfp3z8UxgJS6Lr7hJblVFnlCNULbhGDUV7jkWTNQH0kqZuDMGE9dvhe5EtneDSomVfSUAg yY4XJVbVIuXS4XViKd45NkcTRTC4nMcH8ICFlscsR5SEwavngpTb6+RI7tBDsOwpwLi7/IkHAlAvV Y4FisdTTA==; Received: from willy by bombadil.infradead.org with local (Exim 4.89 #1 (Red Hat Linux)) id 1eh0LV-00018r-Ej; Wed, 31 Jan 2018 21:55:09 +0000 Date: Wed, 31 Jan 2018 13:55:09 -0800 From: Matthew Wilcox To: Goffredo Baroncelli Cc: Jeff Layton , linux-fsdevel , Linux Kernel Mailing List , Goffredo Baroncelli Subject: Re: [PATCH] Rename make inode_cmp_iversion{+raw} to inode_eq_iversion{+raw} Message-ID: <20180131215509.GD28275@bombadil.infradead.org> References: <20180131204309.32474-1-kreijack@libero.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180131204309.32474-1-kreijack@libero.it> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(). 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.