summaryrefslogtreecommitdiff
path: root/fs/seq_file.c
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2014-04-07 23:49:35 (GMT)
committerScott Wood <scottwood@freescale.com>2014-04-07 23:49:35 (GMT)
commit62b8c978ee6b8d135d9e7953221de58000dba986 (patch)
tree683b04b2e627f6710c22c151b23c8cc9a165315e /fs/seq_file.c
parent78fd82238d0e5716578c326404184a27ba67fd6e (diff)
downloadlinux-fsl-qoriq-62b8c978ee6b8d135d9e7953221de58000dba986.tar.xz
Rewind v3.13-rc3+ (78fd82238d0e5716) to v3.12
Diffstat (limited to 'fs/seq_file.c')
-rw-r--r--fs/seq_file.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/fs/seq_file.c b/fs/seq_file.c
index 1d641bb..a290157 100644
--- a/fs/seq_file.c
+++ b/fs/seq_file.c
@@ -136,7 +136,6 @@ static int traverse(struct seq_file *m, loff_t offset)
Eoverflow:
m->op->stop(m, p);
kfree(m->buf);
- m->count = 0;
m->buf = kmalloc(m->size <<= 1, GFP_KERNEL);
return !m->buf ? -ENOMEM : -EAGAIN;
}
@@ -233,10 +232,10 @@ ssize_t seq_read(struct file *file, char __user *buf, size_t size, loff_t *ppos)
goto Fill;
m->op->stop(m, p);
kfree(m->buf);
- m->count = 0;
m->buf = kmalloc(m->size <<= 1, GFP_KERNEL);
if (!m->buf)
goto Enomem;
+ m->count = 0;
m->version = 0;
pos = m->index;
p = m->op->start(m, &pos);
@@ -767,21 +766,6 @@ int seq_write(struct seq_file *seq, const void *data, size_t len)
}
EXPORT_SYMBOL(seq_write);
-/**
- * seq_pad - write padding spaces to buffer
- * @m: seq_file identifying the buffer to which data should be written
- * @c: the byte to append after padding if non-zero
- */
-void seq_pad(struct seq_file *m, char c)
-{
- int size = m->pad_until - m->count;
- if (size > 0)
- seq_printf(m, "%*s", size, "");
- if (c)
- seq_putc(m, c);
-}
-EXPORT_SYMBOL(seq_pad);
-
struct list_head *seq_list_start(struct list_head *head, loff_t pos)
{
struct list_head *lh;