summaryrefslogtreecommitdiffstats
path: root/xlators/meta/src/frames-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/meta/src/frames-file.c')
-rw-r--r--xlators/meta/src/frames-file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/meta/src/frames-file.c b/xlators/meta/src/frames-file.c
index 995d7680e9b..9a13db9a934 100644
--- a/xlators/meta/src/frames-file.c
+++ b/xlators/meta/src/frames-file.c
@@ -30,9 +30,10 @@ frames_file_fill(xlator_t *this, inode_t *file, strfd_t *strfd)
pool = this->ctx->pool;
+ strprintf(strfd, "{ \n\t\"Stack\": [\n");
+
LOCK(&pool->lock);
{
- strprintf(strfd, "{ \n\t\"Stack\": [\n");
list_for_each_entry(stack, &pool->all_frames, all_frames)
{
strprintf(strfd, "\t {\n");