Received: by 10.223.185.116 with SMTP id b49csp5284320wrg; Wed, 7 Mar 2018 09:12:07 -0800 (PST) X-Google-Smtp-Source: AG47ELtEY4aMMnG4WcfVKIZxtE9WwsZrJ58ZBwLWqy2sI0Ei+LEGvg7LSuXCkp5jAvFwac794zOg X-Received: by 10.99.125.69 with SMTP id m5mr18441313pgn.77.1520442727687; Wed, 07 Mar 2018 09:12:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520442727; cv=none; d=google.com; s=arc-20160816; b=fkrQkfvjha9bJVb4A38J412m3c6AV4884vmPlVnUEXnd2NEAgfplhkAAL92tr+bR+p tmF6/mrxq2QTZicNBmgILo9UcFoxDx3MXV7OHYClyhzQLEN0bGGbIP2wE+NHBnhBHyyj veczUixidxZHRfijiWPiRsRamBMTnjgWjc7gP14zvTLXgIIGyr/CzTaDDDqIZ61CS/p5 aWUKVy6F3tTPN2IsPxSf11ZuX3mbeIXTa1pV9Z8WSc6svAoG+k5sHBmmzV5BZJf+G9nV seZl5QGLuZswp0WAT1+FS+Vd5SbI8xYRAXROgC3T/FZV7yx8sU3ynnwE8FY7weXuYGDR XNGw== 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:dkim-signature :arc-authentication-results; bh=M1ZszcVeTDbzy1SI8+fQVkWwEFCbeg7NSiasbzntKMY=; b=BGAcOlc9qimg/QiGgzTP2JdA5yRyKuZH5uZOdDDDy+MWyMUAaMDm50K2UD5v/8ZJ5O XWjA9VZCRRThHc3uWszQZd4gF3hJCWVrrQ3ppA7cbk/r5ELaN4uNyoTWT6zw2aawaG0/ x87eM7Asidh+261SP0LCHo0+AFhU8rr958/Sj53PnGqT/pfXw8y18enHCiRehYY0tNuY D2dQa/fRmgVY+31vOSbz1AqY9EmzZ2Ogzo0lHncO9cdkpHuHslIC5aST52pF1d6v2b/v bqCKSUI8UGMjTeX0s7hU+0jDwjKYnhyeZLdKyJzIY6meQAVhn/wPNnq6DVyQHb4PUsGw YPMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ursulin-net.20150623.gappssmtp.com header.s=20150623 header.b=gx73cWAx; 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 j6si14200183pfa.413.2018.03.07.09.11.52; Wed, 07 Mar 2018 09:12:07 -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=@ursulin-net.20150623.gappssmtp.com header.s=20150623 header.b=gx73cWAx; 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 S934040AbeCGRKk (ORCPT + 99 others); Wed, 7 Mar 2018 12:10:40 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:36842 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933775AbeCGRKg (ORCPT ); Wed, 7 Mar 2018 12:10:36 -0500 Received: by mail-wm0-f66.google.com with SMTP id 188so6102985wme.1 for ; Wed, 07 Mar 2018 09:10:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ursulin-net.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=M1ZszcVeTDbzy1SI8+fQVkWwEFCbeg7NSiasbzntKMY=; b=gx73cWAxZFMbj9phCuLFlo9xcaoKmGUvq91GvuGlS6/xYrJQw8IyzMfnj2wdBcqjiw RZ+B2TnvlBbrpgYscwq2Im+Ozo/D00eSCEJjSvttSNPstErZzmMiFbDnlY5YhkNXADm4 a0uNXuRl0G36stXU0CEZCgVSZ/yWo3W84SfK1yKhA/5zUcK6+lBjdTihjTVtkd37FBBS T1Q5FbB4DsAX3VP8DI8FN7vx4aBfABXo591FHoKqGBdakxV6+uu/8ysrgoh7t9hdfgCK 6t0qSr3DTOYNbEy8RG4EZW6nJTimFgArA77s1JwrMw7TQioaSUCM3M0RQwq/a/xpxCXf RE7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=M1ZszcVeTDbzy1SI8+fQVkWwEFCbeg7NSiasbzntKMY=; b=OMb/cXP2hJKXbiA3HgGgisr6ag6bs4mkvpJ9sEH5R02NZ5Q9g1y7Pw+21Ck+itZusU Mxf2YFbzNUV5ZYoJkZfUfiXJhMqZNOTvIg+imcYU39tp1KliUwSKfKFGlkrQNRp14ZH4 XIfmJP0vW3J2GXg2Re/vt8HCYYqjWVhBjRvm5PbuS8l7Yl25F3zp4/7yUZ9qfTGAqMvH sAbzhGCV1AxmZ0wtQc4ktBSQwD30VvrfLpfAnBNVvR4I5k6FqMeRwRqBVU/wFHtZGkv4 oNcUEaJ2m4IDuY4e1koT80U5N7bWpyks1yRwAeDtd2rt6nvBgxcznFDc3CaptLaOkG0b 88Cw== X-Gm-Message-State: APf1xPCdDM2SxZeffrZxv5s4Xq2BrhH1ukEWFyNQ/2LSqVjAO2557Cg7 w5gDGfyso7mg84llZf65UhTwaA== X-Received: by 10.80.148.101 with SMTP id q34mr28235099eda.70.1520442635308; Wed, 07 Mar 2018 09:10:35 -0800 (PST) Received: from [192.168.0.153] ([95.146.144.186]) by smtp.googlemail.com with ESMTPSA id c58sm16896020edb.33.2018.03.07.09.10.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Mar 2018 09:10:34 -0800 (PST) Subject: Re: [PATCH 4/6] lib/scatterlist: Unexport some trivial wrappers To: Bart Van Assche , "linux-kernel@vger.kernel.org" Cc: "tvrtko.ursulin@intel.com" , "hare@suse.com" , "jthumshirn@suse.de" , "axboe@kernel.dk" References: <20180307124712.14963-1-tvrtko.ursulin@linux.intel.com> <20180307124712.14963-5-tvrtko.ursulin@linux.intel.com> <1520439540.2890.19.camel@wdc.com> From: Tvrtko Ursulin Message-ID: Date: Wed, 7 Mar 2018 17:10:34 +0000 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: <1520439540.2890.19.camel@wdc.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/03/18 16:19, Bart Van Assche wrote: > On Wed, 2018-03-07 at 12:47 +0000, Tvrtko Ursulin wrote: >> Save some kernel size by moving trivial wrappers to header as static >> inline instead of exporting symbols for them. > > Something that you may be unaware of is that the introduction of the sgl > helper functions is only a first step. The next step will be to introduce > a caching allocator for sg-lists. So for small sg-lists inlining won't > help performance. But moving these definitions from a .c file into a .h > file will (slightly) slow down kernel compilation. So I'd prefer that you > drop this patch. Question is how will the future work influence these trivial wrappers? I wasn't suggesting I removed them for performance reasons, but just because they are really trivial and so there is no need right now to have them as exported symbols. And actually in one of the earlier work I did in lib/scatterlist.c Andrew Morton complained a bit to the prevalence of these trivial wrappers. So I even had plans to remove some of the existing ones but never got round to it. Regards, Tvrtko