diff options
| author | Pavel Emelyanov <[email protected]> | 2007-10-01 14:41:15 -0700 |
|---|---|---|
| committer | J. Bruce Fields <[email protected]> | 2007-10-09 18:32:46 -0400 |
| commit | 7f8ada98d9edd83d6ebd01e431e15b024a4a3dc4 (patch) | |
| tree | 1231947efa06478714eeabac3bdbffc663f453c7 /scripts | |
| parent | 094f2825218fec1b240cb8537d2d0a10edf5ddc9 (diff) | |
Rework /proc/locks via seq_files and seq_list helpers
Currently /proc/locks is shown with a proc_read function, but its behavior
is rather complex as it has to manually handle current offset and buffer
length. On the other hand, files that show objects from lists can be
easily reimplemented using the sequential files and the seq_list_XXX()
helpers.
This saves (as usually) 16 lines of code and more than 200 from
the .text section.
[[email protected]: no externs in C]
[[email protected]: warning fixes]
Signed-off-by: Pavel Emelyanov <[email protected]>
Cc: "J. Bruce Fields" <[email protected]>
Cc: Trond Myklebust <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions