aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/brd.c
diff options
context:
space:
mode:
authorGuoqing Jiang <jiangguoqing@kylinos.cn>2021-07-21 10:53:15 +0800
committerJens Axboe <axboe@kernel.dk>2021-08-11 19:40:28 -0600
commit018eca456c4b4dca56aaf1ec27f309c74d0fe246 (patch)
tree4e5c4eafcb904525cf9a822b8d6221d2d059e412 /drivers/block/brd.c
parentwriteback: make the laptop_mode prototypes available unconditionally (diff)
downloadlinux-dev-018eca456c4b4dca56aaf1ec27f309c74d0fe246.tar.xz
linux-dev-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/brd.c')
-rw-r--r--drivers/block/brd.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/block/brd.c b/drivers/block/brd.c
index 95694113e38e..58ec167aa018 100644
--- a/drivers/block/brd.c
+++ b/drivers/block/brd.c
@@ -27,9 +27,6 @@
#include <linux/uaccess.h>
-#define PAGE_SECTORS_SHIFT (PAGE_SHIFT - SECTOR_SHIFT)
-#define PAGE_SECTORS (1 << PAGE_SECTORS_SHIFT)
-
/*
* Each block ramdisk device has a radix_tree brd_pages of pages that stores
* the pages containing the block device's contents. A brd page's ->index is