[PATCH] direct-io: Deinline submit_page_section, save 5304 bytes

From: Denys Vlasenko
Date: Sun Mar 13 2016 - 17:00:55 EST


This function compiles to 2628 bytes, 2 callsites

text data bss dec hex filename
15197 16 0 15213 3b6d direct-io.o.before1
9655 16 0 9671 25c7 direct-io.o

Signed-off-by: Denys Vlasenko <dvlasenk@xxxxxxxxxx>
CC: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
CC: Jens Axboe <axboe@xxxxxx>
CC: Christoph Hellwig <hch@xxxxxx>
CC: linux-kernel@xxxxxxxxxxxxxxx
---
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 d6a9012..21ec685 100644
--- a/fs/direct-io.c
+++ b/fs/direct-io.c
@@ -774,7 +774,7 @@ out:
* If that doesn't work out then we put the old page into the bio and add this
* page to the dio instead.
*/
-static inline int
+static int
submit_page_section(struct dio *dio, struct dio_submit *sdio, struct page *page,
unsigned offset, unsigned len, sector_t blocknr,
struct buffer_head *map_bh)
--
1.8.1.4