[Devel] [PATCH vz7] ploop: fix IS_PSTORAGE() macro
Maxim Patlasov
mpatlasov at virtuozzo.com
Mon Apr 3 09:21:17 PDT 2017
"pstorage" was renamed to "vstorage"
Signed-off-by: Maxim Patlasov <mpatlasov at virtuozzo.com>
---
drivers/block/ploop/dev.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/block/ploop/dev.c b/drivers/block/ploop/dev.c
index 09f5a41..e7aec54 100644
--- a/drivers/block/ploop/dev.c
+++ b/drivers/block/ploop/dev.c
@@ -3843,7 +3843,8 @@ static int ploop_truncate(struct ploop_device * plo, unsigned long arg)
#define FUSE_SUPER_MAGIC 0x65735546
#define IS_PSTORAGE(sb) (sb->s_magic == FUSE_SUPER_MAGIC && \
- !strcmp(sb->s_subtype, "pstorage"))
+ (!strcmp(sb->s_subtype, "pstorage") || \
+ !strcmp(sb->s_subtype, "vstorage")))
static int ploop_bd_full(struct backing_dev_info *bdi, long long nr, int root)
{
More information about the Devel
mailing list