writeback: separate out include/linux/backing-dev-defs.h
authorTejun Heo <tj@kernel.org>
Fri, 22 May 2015 21:13:32 +0000 (17:13 -0400)
committerJens Axboe <axboe@fb.com>
Tue, 2 Jun 2015 14:33:34 +0000 (08:33 -0600)
commit66114cad64bf76a155fec1f0fff0de771cf909d5
tree58d7b8646add87cb40973961757a1c3598f3ee4c
parent4610007142823307d930ac890d822633a05ce08c
writeback: separate out include/linux/backing-dev-defs.h

With the planned cgroup writeback support, backing-dev related
declarations will be more widely used across block and cgroup;
unfortunately, including backing-dev.h from include/linux/blkdev.h
makes cyclic include dependency quite likely.

This patch separates out backing-dev-defs.h which only has the
essential definitions and updates blkdev.h to include it.  c files
which need access to more backing-dev details now include
backing-dev.h directly.  This takes backing-dev.h off the common
include dependency chain making it a lot easier to use it across block
and cgroup.

v2: fs/fat build failure fixed.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Jens Axboe <axboe@fb.com>
29 files changed:
block/blk-integrity.c
block/blk-sysfs.c
block/bounce.c
block/genhd.c
drivers/block/drbd/drbd_int.h
drivers/block/pktcdvd.c
drivers/char/raw.c
drivers/md/bcache/request.c
drivers/md/dm.h
drivers/md/md.h
drivers/mtd/devices/block2mtd.c
fs/block_dev.c
fs/ext4/extents.c
fs/ext4/mballoc.c
fs/ext4/super.c
fs/f2fs/segment.h
fs/fat/file.c
fs/fat/inode.c
fs/hfs/super.c
fs/hfsplus/super.c
fs/nfs/filelayout/filelayout.c
fs/ocfs2/file.c
fs/reiserfs/super.c
fs/ufs/super.c
fs/xfs/xfs_file.c
include/linux/backing-dev-defs.h [new file with mode: 0644]
include/linux/backing-dev.h
include/linux/blkdev.h
mm/madvise.c