Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932972AbcCMVBN (ORCPT ); Sun, 13 Mar 2016 17:01:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60969 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932917AbcCMVBB (ORCPT ); Sun, 13 Mar 2016 17:01:01 -0400 From: Denys Vlasenko To: Al Viro Cc: Denys Vlasenko , Jens Axboe , Christoph Hellwig , linux-kernel@vger.kernel.org Subject: [PATCH] direct-io: Deinline dio_send_cur_page, save ~2000 bytes Date: Sun, 13 Mar 2016 22:00:36 +0100 Message-Id: <1457902836-30786-3-git-send-email-dvlasenk@redhat.com> In-Reply-To: <1457902836-30786-1-git-send-email-dvlasenk@redhat.com> References: <1457902836-30786-1-git-send-email-dvlasenk@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1038 Lines: 30 This function compiles to 1070 bytes, 2 callsites text data bss dec hex filename 9559 16 0 9575 2567 direct-io.o.before3 7587 16 0 7603 1db3 direct-io.o Signed-off-by: Denys Vlasenko CC: Al Viro CC: Jens Axboe CC: Christoph Hellwig CC: linux-kernel@vger.kernel.org --- fs/direct-io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/direct-io.c b/fs/direct-io.c index 729c902..469baf7 100644 --- a/fs/direct-io.c +++ b/fs/direct-io.c @@ -710,7 +710,7 @@ static inline int dio_bio_add_page(struct dio_submit *sdio) * The caller of this function is responsible for removing cur_page from the * dio, and for dropping the refcount which came from that presence. */ -static inline int dio_send_cur_page(struct dio *dio, struct dio_submit *sdio, +static int dio_send_cur_page(struct dio *dio, struct dio_submit *sdio, struct buffer_head *map_bh) { int ret = 0; -- 1.8.1.4