summaryrefslogtreecommitdiffstats
path: root/xlators/features/snapview-client/src/snapview-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/snapview-client/src/snapview-client.c')
-rw-r--r--xlators/features/snapview-client/src/snapview-client.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/features/snapview-client/src/snapview-client.c b/xlators/features/snapview-client/src/snapview-client.c
index 5f325af3b37..c575975d8dc 100644
--- a/xlators/features/snapview-client/src/snapview-client.c
+++ b/xlators/features/snapview-client/src/snapview-client.c
@@ -534,14 +534,15 @@ svc_statfs (call_frame_t *frame, xlator_t *this, loc_t *loc,
root_loc.path = "/";
gf_uuid_clear(root_loc.gfid);
root_loc.gfid[15] = 1;
- root_loc.inode = loc->inode->table->root;
- root_loc.inode->ia_type = IA_IFDIR;
+ root_loc.inode = inode_ref (loc->inode->table->root);
temp_loc = &root_loc;
}
}
STACK_WIND_TAIL (frame, subvolume, subvolume->fops->statfs,
temp_loc, xdata);
+ if (temp_loc)
+ loc_wipe (temp_loc);
wind = _gf_true;
out: