Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

block: move fs/block_dev.c to block/bdev.c

Move it together with the rest of the block layer.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210907141303.1371844-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Christoph Hellwig and committed by
Jens Axboe
0dca4462 cd82cca7

+8 -9
+3
Documentation/core-api/kernel-api.rst
··· 315 315 .. kernel-doc:: block/genhd.c 316 316 :export: 317 317 318 + .. kernel-doc:: block/bdev.c 319 + :export: 320 + 318 321 Char devices 319 322 ============ 320 323
-3
Documentation/filesystems/api-summary.rst
··· 71 71 .. kernel-doc:: fs/fs-writeback.c 72 72 :export: 73 73 74 - .. kernel-doc:: fs/block_dev.c 75 - :export: 76 - 77 74 .. kernel-doc:: fs/anon_inodes.c 78 75 :export: 79 76
-1
MAINTAINERS
··· 3300 3300 T: git git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git 3301 3301 F: block/ 3302 3302 F: drivers/block/ 3303 - F: fs/block_dev.c 3304 3303 F: include/linux/blk* 3305 3304 F: kernel/trace/blktrace.c 3306 3305 F: lib/sbitmap.c
+1 -1
block/Makefile
··· 3 3 # Makefile for the kernel block layer 4 4 # 5 5 6 - obj-$(CONFIG_BLOCK) := fops.o bio.o elevator.o blk-core.o blk-sysfs.o \ 6 + obj-$(CONFIG_BLOCK) := bdev.o fops.o bio.o elevator.o blk-core.o blk-sysfs.o \ 7 7 blk-flush.o blk-settings.o blk-ioc.o blk-map.o \ 8 8 blk-exec.o blk-merge.o blk-timeout.o \ 9 9 blk-lib.o blk-mq.o blk-mq-tag.o blk-stat.o \
+1 -1
fs/Makefile
··· 17 17 kernel_read_file.o remap_range.o 18 18 19 19 ifeq ($(CONFIG_BLOCK),y) 20 - obj-y += buffer.o block_dev.o direct-io.o mpage.o 20 + obj-y += buffer.o direct-io.o mpage.o 21 21 else 22 22 obj-y += no-block.o 23 23 endif
+2 -2
fs/block_dev.c block/bdev.c
··· 26 26 #include <linux/cleancache.h> 27 27 #include <linux/part_stat.h> 28 28 #include <linux/uaccess.h> 29 - #include "internal.h" 30 - #include "../block/blk.h" 29 + #include "../fs/internal.h" 30 + #include "blk.h" 31 31 32 32 struct bdev_inode { 33 33 struct block_device bdev;
+1 -1
fs/internal.h
··· 18 18 struct pipe_inode_info; 19 19 20 20 /* 21 - * block_dev.c 21 + * block/bdev.c 22 22 */ 23 23 #ifdef CONFIG_BLOCK 24 24 extern void __init bdev_cache_init(void);