summaryrefslogtreecommitdiff
path: root/drivers/md/bcache/util.h
diff options
context:
space:
mode:
authorGuoqing Jiang <jiangguoqing@kylinos.cn>2021-07-21 05:53:15 +0300
committerJens Axboe <axboe@kernel.dk>2021-08-12 04:40:28 +0300
commit018eca456c4b4dca56aaf1ec27f309c74d0fe246 (patch)
tree4e5c4eafcb904525cf9a822b8d6221d2d059e412 /drivers/md/bcache/util.h
parent99d26de2f6d79badc80f55b54bd90d4cb9d1ad90 (diff)
downloadlinux-018eca456c4b4dca56aaf1ec27f309c74d0fe246.tar.xz
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/md/bcache/util.h')
-rw-r--r--drivers/md/bcache/util.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/md/bcache/util.h b/drivers/md/bcache/util.h
index bca4a7c97da7..b64460a76267 100644
--- a/drivers/md/bcache/util.h
+++ b/drivers/md/bcache/util.h
@@ -15,8 +15,6 @@
#include "closure.h"
-#define PAGE_SECTORS (PAGE_SIZE / 512)
-
struct closure;
#ifdef CONFIG_BCACHE_DEBUG