Pavel Emelianov
bcf67e1625
Make common helpers for seq_files that work with list_heads
...
Many places in kernel use seq_file API to iterate over a regular list_head.
The code for such iteration is identical in all the places, so it's worth
introducing a common helpers.
This makes code about 300 lines smaller:
The first version of this patch made the helper functions static inline
in the seq_file.h header. This patch moves them to the fs/seq_file.c as
Andrew proposed. The vmlinux .text section sizes are as follows:
2.6.22-rc1-mm1: 0x001794d5
with the previous version: 0x00179505
with this patch: 0x00179135
The config file used was make allnoconfig with the "y" inclusion of all
the possible options to make the files modified by the patch compile plus
drivers I have on the test node.
This patch:
Many places in kernel use seq_file API to iterate over a regular list_head.
The code for such iteration is identical in all the places, so it's worth
introducing a common helpers.
Signed-off-by: Pavel Emelianov <xemul@openvz.org>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-10 17:51:13 -07:00
..
2007-05-21 09:18:19 -07:00
2007-07-10 08:04:13 +02:00
2007-07-10 08:04:13 +02:00
2007-07-10 08:04:13 +02:00
2007-05-11 08:29:36 -07:00
2007-05-11 08:29:36 -07:00
2007-05-17 05:23:04 -07:00
2007-07-10 08:04:13 +02:00
2007-07-10 08:04:13 +02:00
2007-07-10 08:04:13 +02:00
2007-05-21 09:18:19 -07:00
2007-05-07 12:12:51 -07:00
2007-05-02 18:57:59 -07:00
2007-05-08 11:14:59 -07:00
2007-07-09 08:24:13 +01:00
2007-07-10 08:04:13 +02:00
2007-05-17 05:23:04 -07:00
2007-05-08 11:15:07 -07:00
2007-07-10 08:04:15 +02:00
2007-07-10 08:04:13 +02:00
2007-07-10 08:04:13 +02:00
2007-07-10 08:04:13 +02:00
2007-05-08 11:14:59 -07:00
2007-07-10 08:04:13 +02:00
2007-07-10 13:56:13 -07:00
2007-07-10 08:04:13 +02:00
2007-07-10 08:04:13 +02:00
2007-07-10 08:04:13 +02:00
2007-07-10 08:04:13 +02:00
2007-02-12 09:48:47 -08:00
2007-06-16 13:16:16 -07:00
2007-05-17 05:23:04 -07:00
2007-05-09 08:58:16 +02:00
2007-05-09 08:58:16 +02:00
2007-07-10 08:04:13 +02:00
2007-07-10 08:04:13 +02:00
2007-05-14 19:33:46 -04:00
2007-07-10 08:04:13 +02:00
2007-02-12 09:48:46 -08:00
2007-05-21 09:18:19 -07:00
2007-07-10 08:04:14 +02:00
2007-07-10 08:04:15 +02:00
2006-12-07 08:39:46 -08:00
2007-07-10 08:04:13 +02:00
2007-07-10 08:04:15 +02:00
2007-05-17 05:23:04 -07:00
2007-07-10 11:24:44 +02:00
2007-07-09 18:52:00 +02:00
2007-07-10 08:04:13 +02:00
2007-07-10 08:04:13 +02:00
2007-07-10 08:04:13 +02:00
2007-05-17 05:23:04 -07:00
2007-07-10 08:04:13 +02:00
2007-06-12 16:08:47 -07:00
2007-07-10 08:04:13 +02:00
2007-07-10 08:04:13 +02:00
2007-07-10 08:04:13 +02:00
2007-02-12 09:48:46 -08:00
2007-07-10 08:04:13 +02:00
2007-05-11 08:29:37 -07:00
2007-05-11 08:29:36 -07:00
2007-05-08 11:15:07 -07:00
2007-07-10 08:04:15 +02:00
2006-12-08 08:28:41 -08:00
2007-05-08 11:15:07 -07:00
2007-07-06 10:23:43 -07:00
2007-05-08 11:15:07 -07:00
2007-06-08 17:23:32 -07:00
2007-05-21 09:18:19 -07:00
2007-05-08 11:15:07 -07:00
2007-07-10 08:03:34 +02:00
2007-07-10 08:04:13 +02:00
2007-05-21 09:15:32 -07:00
2007-04-04 21:12:47 -07:00
2007-05-25 17:37:46 -07:00
2007-05-23 20:14:12 -07:00
2007-05-08 11:15:07 -07:00
2006-12-07 08:39:25 -08:00
2007-07-03 18:23:23 -07:00
2006-12-08 08:28:41 -08:00
2007-05-17 05:23:05 -07:00
2007-02-11 10:51:31 -08:00
2007-05-18 13:09:34 -07:00
2007-05-15 08:54:00 -07:00
2007-05-23 20:14:13 -07:00
2006-12-10 09:57:22 -08:00
2007-05-21 09:18:19 -07:00
2007-05-08 11:15:07 -07:00
2006-12-22 08:55:50 -08:00
2007-05-08 11:15:01 -07:00
2007-01-26 12:53:20 -08:00
2007-05-17 05:23:04 -07:00
2007-02-12 09:48:28 -08:00
2007-05-08 11:15:11 -07:00
2007-05-08 11:15:09 -07:00
2007-06-04 13:25:10 -07:00
2007-02-12 09:48:32 -08:00
2007-05-09 08:58:15 +02:00
2007-05-21 14:34:00 +09:00
2007-05-09 06:44:57 +02:00
2007-05-17 05:23:04 -07:00
2007-05-11 08:29:36 -07:00
2006-12-07 08:39:25 -08:00
2007-05-11 08:29:35 -07:00
2007-05-11 05:38:26 -04:00
2007-05-08 11:15:12 -07:00
2007-05-08 20:10:00 -07:00
2007-07-10 08:04:16 +02:00
2007-05-08 11:15:11 -07:00
2006-12-08 08:28:51 -08:00
2007-05-17 05:23:05 -07:00
2007-07-10 08:04:15 +02:00
2007-05-08 11:15:09 -07:00
2007-05-09 07:10:02 +02:00
2007-07-10 17:51:13 -07:00
2007-06-28 11:34:54 -07:00
2007-07-10 08:04:16 +02:00
2007-02-19 14:21:50 -08:00
2007-05-08 11:15:07 -07:00
2007-05-08 11:15:01 -07:00
2007-06-28 11:38:30 -07:00
2007-05-18 13:09:34 -07:00
2007-07-08 12:02:55 -07:00
2007-02-14 08:09:54 -08:00
2007-05-11 05:38:26 -04:00