Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751659AbbGaJe4 (ORCPT ); Fri, 31 Jul 2015 05:34:56 -0400 Received: from mail-pd0-f171.google.com ([209.85.192.171]:33381 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750995AbbGaJey (ORCPT ); Fri, 31 Jul 2015 05:34:54 -0400 Date: Fri, 31 Jul 2015 15:04:50 +0530 From: Viresh Kumar To: yalin wang , Joe Perches Cc: "Kirill A. Shutemov" , Andrew Morton , linaro-kernel@lists.linaro.org, open list , "Aneesh Kumar K.V" , David Rientjes , Ebru Akagunduz , Johannes Weiner , "Kirill A. Shutemov" , "open list:MEMORY MANAGEMENT" , Mel Gorman , Michal Hocko , Vlastimil Babka Subject: Re: [PATCH 14/15] mm: Drop unlikely before IS_ERR(_OR_NULL) Message-ID: <20150731093450.GA7505@linux> References: <91586af267deb26b905fba61a9f1f665a204a4e3.1438331416.git.viresh.kumar@linaro.org> <20150731085646.GA31544@node.dhcp.inet.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1254 Lines: 33 On 31-07-15, 17:32, yalin wang wrote: > > > On Jul 31, 2015, at 16:56, Kirill A. Shutemov wrote: > > > > On Fri, Jul 31, 2015 at 02:08:34PM +0530, Viresh Kumar wrote: > >> IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and there > >> is no need to do that again from its callers. Drop it. > >> > >> Signed-off-by: Viresh Kumar > > > > Acked-by: Kirill A. Shutemov > search in code, there are lots of using like this , does need add this check into checkpatch ? cc'd Joe for that. :) > # grep -r 'likely.*IS_ERR' . > ./include/linux/blk-cgroup.h: if (unlikely(IS_ERR(blkg))) > ./fs/nfs/objlayout/objio_osd.c: if (unlikely(IS_ERR(od))) { > ./fs/cifs/readdir.c: if (unlikely(IS_ERR(dentry))) > ./fs/ext4/extents.c: if (unlikely(IS_ERR(bh))) { > ./fs/ext4/extents.c: if (unlikely(IS_ERR(path1))) { > ./fs/ext4/extents.c: if (unlikely(IS_ERR(path2))) { Btw, my series has fixed all of them :) -- viresh -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/