[RFC PATCH 1/7] bcache: compile fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


dynamic_fault bits have been removed.

Signed-off-by: Dan Williams <dan.j.williams@xxxxxxxxx>
---
 drivers/block/bcache/util.c |    2 --
 drivers/block/bcache/util.h |    3 ---
 2 files changed, 5 deletions(-)

diff --git a/drivers/block/bcache/util.c b/drivers/block/bcache/util.c
index 200c523..6da7058 100644
--- a/drivers/block/bcache/util.c
+++ b/drivers/block/bcache/util.c
@@ -6,8 +6,6 @@
 #include <linux/seq_file.h>
 #include <linux/types.h>
 
-#include <linux/dynamic_fault.h>
-
 #include "util.h"
 
 #define simple_strtoint(c, end, base)	simple_strtol(c, end, base)
diff --git a/drivers/block/bcache/util.h b/drivers/block/bcache/util.h
index 0c14cd7..6bd5327 100644
--- a/drivers/block/bcache/util.h
+++ b/drivers/block/bcache/util.h
@@ -597,9 +597,6 @@ unsigned __bio_max_sectors(struct bio *bio, struct block_device *bdev,
 
 int bio_alloc_pages(struct bio *bio, gfp_t gfp);
 
-#define bio_alloc_pages(...)						\
-	(dynamic_fault() ? -ENOMEM	: bio_alloc_pages(__VA_ARGS__))
-
 static inline unsigned bio_max_sectors(struct bio *bio)
 {
 	return __bio_max_sectors(bio, bio->bi_bdev, bio->bi_sector);

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[ATA RAID]     [Linux SCSI Target Infrastructure]     [Managing RAID on Linux]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device-Mapper]     [Kernel]     [Linux Books]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Photos]     [Yosemite Photos]     [Yosemite News]     [AMD 64]     [Linux Networking]

Add to Google Powered by Linux