]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - fs/buffer.c
buffer: make touch_buffer() an exported function
authorTejun Heo <tj@kernel.org>
Fri, 11 Jan 2013 21:06:35 +0000 (13:06 -0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 14 Jan 2013 14:00:36 +0000 (15:00 +0100)
commitf0059afd3e6e7aa1a0ffc23468b74c43d47660b8
treefe8f51ff74f725a182f312e1cfb3fea819f33cd6
parent8c1cf6bb02fda79b0a4b9bd121f6be6d4ce7a15a
buffer: make touch_buffer() an exported function

We want to add a trace point to touch_buffer() but macros and inline
functions defined in header files can't have tracing points.  Move
touch_buffer() to fs/buffer.c and make it a proper function.

The new exported function is also declared inline.  As most uses of
touch_buffer() are inside buffer.c with nilfs2 as the only other user,
the effect of this change should be negligible.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/buffer.c
include/linux/buffer_head.h