writeback: relocate wb[_try]_get(), wb_put(), inode_{attach|detach}_wb()
authorTejun Heo <tj@kernel.org>
Thu, 28 May 2015 18:50:49 +0000 (14:50 -0400)
committerJens Axboe <axboe@fb.com>
Tue, 2 Jun 2015 14:39:08 +0000 (08:39 -0600)
commit21c6321fbb3a3787af07f1bc031d713a707fb69c
treede5489853b7f0d82adfd74da30d3945aba45e366
parent97c9341f727105c29478da19f1687b0e0a917256
writeback: relocate wb[_try]_get(), wb_put(), inode_{attach|detach}_wb()

Currently, majority of cgroup writeback support including all the
above functions are implemented in include/linux/backing-dev.h and
mm/backing-dev.c; however, the portion closely related to writeback
logic implemented in include/linux/writeback.h and mm/page-writeback.c
will expand to support foreign writeback detection and correction.

This patch moves wb[_try]_get() and wb_put() to
include/linux/backing-dev-defs.h so that they can be used from
writeback.h and inode_{attach|detach}_wb() to writeback.h and
page-writeback.c.

This is pure reorganization and doesn't introduce any functional
changes.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Jan Kara <jack@suse.cz>
Cc: Wu Fengguang <fengguang.wu@intel.com>
Cc: Greg Thelen <gthelen@google.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
fs/fs-writeback.c
include/linux/backing-dev-defs.h
include/linux/backing-dev.h
include/linux/writeback.h
mm/backing-dev.c