From 7d3b51f6c533c38db19b0d93c6107cf67df58f6d Mon Sep 17 00:00:00 2001 From: Steven Whitehouse Date: Thu, 7 Jun 2012 13:30:16 +0100 Subject: [PATCH] --- yaml --- r: 316738 b: refs/heads/master c: df5d2f5560a9c33129391a136ed9f0ac26abe69b h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/gfs2/glock.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index a4ef9b949125..b7e9aa49b84f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1b8ba31a88c5115687095ca2a01bfcaecb489b5a +refs/heads/master: df5d2f5560a9c33129391a136ed9f0ac26abe69b diff --git a/trunk/fs/gfs2/glock.c b/trunk/fs/gfs2/glock.c index dab2526071cc..1c4cddf42a66 100644 --- a/trunk/fs/gfs2/glock.c +++ b/trunk/fs/gfs2/glock.c @@ -1972,6 +1972,9 @@ static int gfs2_glocks_open(struct inode *inode, struct file *file) struct seq_file *seq = file->private_data; struct gfs2_glock_iter *gi = seq->private; gi->sdp = inode->i_private; + seq->buf = kmalloc(8*PAGE_SIZE, GFP_KERNEL | __GFP_NOWARN); + if (seq->buf) + seq->size = 8*PAGE_SIZE; } return ret; } @@ -1984,6 +1987,9 @@ static int gfs2_glstats_open(struct inode *inode, struct file *file) struct seq_file *seq = file->private_data; struct gfs2_glock_iter *gi = seq->private; gi->sdp = inode->i_private; + seq->buf = kmalloc(8*PAGE_SIZE, GFP_KERNEL | __GFP_NOWARN); + if (seq->buf) + seq->size = 8*PAGE_SIZE; } return ret; }