]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
seq_file: don't call bitmap_scnprintf_len()
authorLai Jiangshan <laijs@cn.fujitsu.com>
Sun, 19 Oct 2008 03:28:18 +0000 (20:28 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 20 Oct 2008 15:52:39 +0000 (08:52 -0700)
commit85dd030edb174376ef43bc95e5fae4755af1ec98
tree60e0ca69da813ce50dacdc9fdfe9597e33ac6119
parent40b6a76237563c70466ec7315f644ba87d57dbe5
seq_file: don't call bitmap_scnprintf_len()

"m->count + len < m->size" is true commonly, so bitmap_scnprintf()
is commonly called. this fix saves a call to bitmap_scnprintf_len().

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Paul Menage <menage@google.com>
Cc: Paul Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/seq_file.c