]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
bcache: move uapi header bcache.h to bcache code directory
authorColy Li <colyli@suse.de>
Fri, 29 Oct 2021 06:09:29 +0000 (14:09 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 29 Oct 2021 12:43:21 +0000 (06:43 -0600)
The header file include/uapi/linux/bcache.h is not really a user space
API heaer. This file defines the ondisk format of bcache internal meta
data but no one includes it from user space, bcache-tools has its own
copy of this header with minor modification.

Therefore, this patch moves include/uapi/linux/bcache.h to bcache code
directory as drivers/md/bcache/bcache_ondisk.h.

Suggested-by: Arnd Bergmann <arnd@kernel.org>
Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Coly Li <colyli@suse.de>
Link: https://lore.kernel.org/r/20211029060930.119923-2-colyli@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/bcache.h
drivers/md/bcache/bcache_ondisk.h [moved from include/uapi/linux/bcache.h with 100% similarity]
drivers/md/bcache/bset.h
drivers/md/bcache/features.c
drivers/md/bcache/features.h

index 941685409c68f72f2d769c0d7d8945e0e43092e4..9ed9c955add7b9c957f2f1be5628ca633bfa7a08 100644 (file)
 
 #define pr_fmt(fmt) "bcache: %s() " fmt, __func__
 
-#include <linux/bcache.h>
 #include <linux/bio.h>
 #include <linux/kobject.h>
 #include <linux/list.h>
 #include <linux/workqueue.h>
 #include <linux/kthread.h>
 
+#include "bcache_ondisk.h"
 #include "bset.h"
 #include "util.h"
 #include "closure.h"
index a50dcfda656f5f9426eb66ac6620348aa23e2a0d..d795c84246b0184b60d98d01f798cdf36876d99b 100644 (file)
@@ -2,10 +2,10 @@
 #ifndef _BCACHE_BSET_H
 #define _BCACHE_BSET_H
 
-#include <linux/bcache.h>
 #include <linux/kernel.h>
 #include <linux/types.h>
 
+#include "bcache_ondisk.h"
 #include "util.h" /* for time_stats */
 
 /*
index 6d2b7b84a7b7f0027eb4370fc6a9e6fe3dde28c9..634922c5601db7d9f836ea1a49568db1b9876861 100644 (file)
@@ -6,7 +6,7 @@
  * Copyright 2020 Coly Li <colyli@suse.de>
  *
  */
-#include <linux/bcache.h>
+#include "bcache_ondisk.h"
 #include "bcache.h"
 #include "features.h"
 
index d1c8fd3977fc64461215673c18e67ef9f937d03d..09161b89c63edf993b2a8ac815590fb414b92ef1 100644 (file)
@@ -2,10 +2,11 @@
 #ifndef _BCACHE_FEATURES_H
 #define _BCACHE_FEATURES_H
 
-#include <linux/bcache.h>
 #include <linux/kernel.h>
 #include <linux/types.h>
 
+#include "bcache_ondisk.h"
+
 #define BCH_FEATURE_COMPAT             0
 #define BCH_FEATURE_RO_COMPAT          1
 #define BCH_FEATURE_INCOMPAT           2