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>
This commit is contained in:
Christoph Hellwig 2021-09-07 16:13:03 +02:00 committed by Jens Axboe
parent cd82cca7eb
commit 0dca4462ed
7 changed files with 8 additions and 9 deletions

View File

@ -315,6 +315,9 @@ Block Devices
.. kernel-doc:: block/genhd.c .. kernel-doc:: block/genhd.c
:export: :export:
.. kernel-doc:: block/bdev.c
:export:
Char devices Char devices
============ ============

View File

@ -71,9 +71,6 @@ Other Functions
.. kernel-doc:: fs/fs-writeback.c .. kernel-doc:: fs/fs-writeback.c
:export: :export:
.. kernel-doc:: fs/block_dev.c
:export:
.. kernel-doc:: fs/anon_inodes.c .. kernel-doc:: fs/anon_inodes.c
:export: :export:

View File

@ -3300,7 +3300,6 @@ S: Maintained
T: git git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git T: git git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
F: block/ F: block/
F: drivers/block/ F: drivers/block/
F: fs/block_dev.c
F: include/linux/blk* F: include/linux/blk*
F: kernel/trace/blktrace.c F: kernel/trace/blktrace.c
F: lib/sbitmap.c F: lib/sbitmap.c

View File

@ -3,7 +3,7 @@
# Makefile for the kernel block layer # Makefile for the kernel block layer
# #
obj-$(CONFIG_BLOCK) := fops.o bio.o elevator.o blk-core.o blk-sysfs.o \ obj-$(CONFIG_BLOCK) := bdev.o fops.o bio.o elevator.o blk-core.o blk-sysfs.o \
blk-flush.o blk-settings.o blk-ioc.o blk-map.o \ blk-flush.o blk-settings.o blk-ioc.o blk-map.o \
blk-exec.o blk-merge.o blk-timeout.o \ blk-exec.o blk-merge.o blk-timeout.o \
blk-lib.o blk-mq.o blk-mq-tag.o blk-stat.o \ blk-lib.o blk-mq.o blk-mq-tag.o blk-stat.o \

View File

@ -26,8 +26,8 @@
#include <linux/cleancache.h> #include <linux/cleancache.h>
#include <linux/part_stat.h> #include <linux/part_stat.h>
#include <linux/uaccess.h> #include <linux/uaccess.h>
#include "internal.h" #include "../fs/internal.h"
#include "../block/blk.h" #include "blk.h"
struct bdev_inode { struct bdev_inode {
struct block_device bdev; struct block_device bdev;

View File

@ -17,7 +17,7 @@ obj-y := open.o read_write.o file_table.o super.o \
kernel_read_file.o remap_range.o kernel_read_file.o remap_range.o
ifeq ($(CONFIG_BLOCK),y) ifeq ($(CONFIG_BLOCK),y)
obj-y += buffer.o block_dev.o direct-io.o mpage.o obj-y += buffer.o direct-io.o mpage.o
else else
obj-y += no-block.o obj-y += no-block.o
endif endif

View File

@ -18,7 +18,7 @@ struct user_namespace;
struct pipe_inode_info; struct pipe_inode_info;
/* /*
* block_dev.c * block/bdev.c
*/ */
#ifdef CONFIG_BLOCK #ifdef CONFIG_BLOCK
extern void __init bdev_cache_init(void); extern void __init bdev_cache_init(void);