Skip to content

Commit cd82cca

Browse files
Christoph Hellwigaxboe
authored andcommitted
block: split out operations on block special files
Add a new block/fops.c for all the file and address_space operations that provide the block special file support. Signed-off-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] [axboe: correct trailing whitespace while at it] Signed-off-by: Jens Axboe <[email protected]>
1 parent 49d82b1 commit cd82cca

File tree

4 files changed

+643
-638
lines changed

4 files changed

+643
-638
lines changed

block/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Makefile for the kernel block layer
44
#
55

6-
obj-$(CONFIG_BLOCK) := bio.o elevator.o blk-core.o blk-sysfs.o \
6+
obj-$(CONFIG_BLOCK) := fops.o bio.o elevator.o blk-core.o blk-sysfs.o \
77
blk-flush.o blk-settings.o blk-ioc.o blk-map.o \
88
blk-exec.o blk-merge.o blk-timeout.o \
99
blk-lib.o blk-mq.o blk-mq-tag.o blk-stat.o \

block/blk.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,4 +373,6 @@ static inline void bio_clear_hipri(struct bio *bio)
373373
bio->bi_opf &= ~REQ_HIPRI;
374374
}
375375

376+
extern const struct address_space_operations def_blk_aops;
377+
376378
#endif /* BLK_INTERNAL_H */

0 commit comments

Comments
 (0)