[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1353585257-4415-1-git-send-email-clouds.yan@gmail.com>
Date: Thu, 22 Nov 2012 19:54:16 +0800
From: Yan Hong <clouds.yan@...il.com>
To: akpm@...ux-foundation.org
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH 1/2] fs/buffer.c: do not inline exported function
It makes no sense to inlines exported function.
Signed-off-by: Yan Hong <clouds.yan@...il.com>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists