diff options
| author | Pavel Emelianov <[email protected]> | 2007-07-11 00:22:26 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-07-11 00:51:13 +0000 |
| commit | bcf67e16251c42302499499b1c50f7d35622f564 (patch) | |
| tree | 3df64aa83005c0a153acf3a1a0d7a6e6d49dc688 /security/selinux/include/class_to_string.h | |
| parent | sx: switch subven and subid values (diff) | |
| download | kernel-bcf67e16251c42302499499b1c50f7d35622f564.tar.gz kernel-bcf67e16251c42302499499b1c50f7d35622f564.zip | |
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 <[email protected]>
Cc: "David S. Miller" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'security/selinux/include/class_to_string.h')
0 files changed, 0 insertions, 0 deletions
