[Drbd-dev] [PATCH 8/8] compat: remove set_bdi_cap_stable_writes
Michael D Labriola
michael.d.labriola at gmail.com
Sun Dec 13 06:58:59 CET 2020
BDI_CAP_STABLE_WRITES goes away in 5.10, resulting in tons of warnings at
compile time. It doesn't look like anything in either drbd or drbd-utils
is using the resulting set_bdi_cap_stable_writes macro anyways, so this
commit removes it.
Signed-off-by: Michael D Labriola <michael.d.labriola at gmail.com>
---
drbd/drbd-kernel-compat/drbd_wrappers.h | 7 -------
1 file changed, 7 deletions(-)
diff --git a/drbd/drbd-kernel-compat/drbd_wrappers.h b/drbd/drbd-kernel-compat/drbd_wrappers.h
index c0d8981c..01fdbf22 100644
--- a/drbd/drbd-kernel-compat/drbd_wrappers.h
+++ b/drbd/drbd-kernel-compat/drbd_wrappers.h
@@ -127,13 +127,6 @@ static inline void blk_queue_write_cache(struct request_queue *q, bool enabled,
#define KREF_INIT(N) { ATOMIC_INIT(N) }
#endif
-#ifdef BDI_CAP_STABLE_WRITES /* >= v3.9 */
-#define set_bdi_cap_stable_writes(cap) do { (cap) |= BDI_CAP_STABLE_WRITES; } while (0)
-#else /* < v3.9 */
-#warning "BDI_CAP_STABLE_WRITES not available"
-#define set_bdi_cap_stable_writes(cap) do { } while (0)
-#endif
-
#ifdef COMPAT_HAVE_POINTER_BACKING_DEV_INFO /* >= v4.11 */
#define bdi_from_device(device) (device->ldev->backing_bdev->bd_disk->queue->backing_dev_info)
#else /* < v4.11 */
--
2.17.1
More information about the drbd-dev
mailing list