[PATCH 1/2] fs/buffer.c: do not inline exported function

From: Yan Hong
Date: Thu Nov 22 2012 - 13:57:55 EST


It makes no sense to inlines exported function.

Signed-off-by: Yan Hong <clouds.yan@xxxxxxxxx>
---

init_buffer() is trivial and only get two module users. Maybe we
can move it to buffer_head.h.

Remove inline is much more simple to make it clean though.

fs/buffer.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/buffer.c b/fs/buffer.c
index b5f0442..69e83ee 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -46,8 +46,7 @@ static int fsync_buffers_list(spinlock_t *lock, struct list_head *list);

#define BH_ENTRY(list) list_entry((list), struct buffer_head, b_assoc_buffers)

-inline void
-init_buffer(struct buffer_head *bh, bh_end_io_t *handler, void *private)
+void init_buffer(struct buffer_head *bh, bh_end_io_t *handler, void *private)
{
bh->b_end_io = handler;
bh->b_private = private;
--
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/