[PATCH] direct-io: Deinline dio_zero_block, save 2684 bytes

From: Denys Vlasenko
Date: Sun Mar 13 2016 - 17:01:09 EST


This function compiles to 2684 bytes, 2 callsites

text data bss dec hex filename
9655 16 0 9671 25c7 direct-io.o.before2
9559 16 0 9575 2567 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 21ec685..729c902 100644
--- a/fs/direct-io.c
+++ b/fs/direct-io.c
@@ -857,7 +857,7 @@ static void clean_blockdev_aliases(struct dio *dio, struct buffer_head *map_bh)
* `end' is zero if we're doing the start of the IO, 1 at the end of the
* IO.
*/
-static inline void dio_zero_block(struct dio *dio, struct dio_submit *sdio,
+static void dio_zero_block(struct dio *dio, struct dio_submit *sdio,
int end, struct buffer_head *map_bh)
{
unsigned dio_blocks_per_fs_block;
--
1.8.1.4