diff options
Diffstat (limited to 'lib/device/dev-swap.c')
-rw-r--r-- | lib/device/dev-swap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/device/dev-swap.c b/lib/device/dev-swap.c index 564bb58ec..c6a500f4a 100644 --- a/lib/device/dev-swap.c +++ b/lib/device/dev-swap.c @@ -42,7 +42,7 @@ int dev_is_swap(struct device *dev, uint64_t *offset_found, int full) unsigned page; int ret = 0; - if (!scan_bcache) + if (!io_data_ready) return -EAGAIN; if (!dev_get_size(dev, &size)) { |