diff options
author | Guoqing Jiang <jiangguoqing@kylinos.cn> | 2021-07-21 04:53:15 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-08-12 03:40:28 +0200 |
commit | 018eca456c4b4dca56aaf1ec27f309c74d0fe246 (patch) | |
tree | 4e5c4eafcb904525cf9a822b8d6221d2d059e412 /drivers/block/null_blk | |
parent | writeback: make the laptop_mode prototypes available unconditionally (diff) | |
download | linux-018eca456c4b4dca56aaf1ec27f309c74d0fe246.tar.xz linux-018eca456c4b4dca56aaf1ec27f309c74d0fe246.zip |
block: move some macros to blkdev.h
Move them (PAGE_SECTORS_SHIFT, PAGE_SECTORS and SECTOR_MASK) to the
generic header file to remove redundancy.
Signed-off-by: Guoqing Jiang <jiangguoqing@kylinos.cn>
Link: https://lore.kernel.org/r/20210721025315.1729118-1-guoqing.jiang@linux.dev
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/null_blk')
-rw-r--r-- | drivers/block/null_blk/main.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/block/null_blk/main.c b/drivers/block/null_blk/main.c index d734e9ee1546..f128242d1170 100644 --- a/drivers/block/null_blk/main.c +++ b/drivers/block/null_blk/main.c @@ -11,10 +11,6 @@ #include <linux/init.h> #include "null_blk.h" -#define PAGE_SECTORS_SHIFT (PAGE_SHIFT - SECTOR_SHIFT) -#define PAGE_SECTORS (1 << PAGE_SECTORS_SHIFT) -#define SECTOR_MASK (PAGE_SECTORS - 1) - #define FREE_BATCH 16 #define TICKS_PER_SEC 50ULL |