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>
Showing
- block/blk-integrity.c 1 addition, 0 deletionsblock/blk-integrity.c
- block/blk-sysfs.c 1 addition, 0 deletionsblock/blk-sysfs.c
- block/bounce.c 1 addition, 0 deletionsblock/bounce.c
- block/genhd.c 1 addition, 0 deletionsblock/genhd.c
- drivers/block/drbd/drbd_int.h 1 addition, 0 deletionsdrivers/block/drbd/drbd_int.h
- drivers/block/pktcdvd.c 1 addition, 0 deletionsdrivers/block/pktcdvd.c
- drivers/char/raw.c 1 addition, 0 deletionsdrivers/char/raw.c
- drivers/md/bcache/request.c 1 addition, 0 deletionsdrivers/md/bcache/request.c
- drivers/md/dm.h 1 addition, 0 deletionsdrivers/md/dm.h
- drivers/md/md.h 1 addition, 0 deletionsdrivers/md/md.h
- drivers/mtd/devices/block2mtd.c 1 addition, 0 deletionsdrivers/mtd/devices/block2mtd.c
- fs/block_dev.c 1 addition, 0 deletionsfs/block_dev.c
- fs/ext4/extents.c 1 addition, 0 deletionsfs/ext4/extents.c
- fs/ext4/mballoc.c 1 addition, 0 deletionsfs/ext4/mballoc.c
- fs/ext4/super.c 1 addition, 0 deletionsfs/ext4/super.c
- fs/f2fs/segment.h 1 addition, 0 deletionsfs/f2fs/segment.h
- fs/fat/file.c 1 addition, 0 deletionsfs/fat/file.c
- fs/fat/inode.c 1 addition, 0 deletionsfs/fat/inode.c
- fs/hfs/super.c 1 addition, 0 deletionsfs/hfs/super.c
- fs/hfsplus/super.c 1 addition, 0 deletionsfs/hfsplus/super.c
Loading
Please register or sign in to comment