[Devel,vz7] ploop: fix IS_PSTORAGE() macro

Submitted by Maxim Patlasov on April 3, 2017, 4:21 p.m.

Details

Message ID 149123646482.7426.16214009596409466069.stgit@maxim-thinkpad
State New
Series "ploop: fix IS_PSTORAGE() macro"
Headers show

Commit Message

Maxim Patlasov April 3, 2017, 4:21 p.m.
"pstorage" was renamed to "vstorage"

Signed-off-by: Maxim Patlasov <mpatlasov@virtuozzo.com>
---
 drivers/block/ploop/dev.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

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)
 {