seq_file: move traverse so it can be used from seq_read
authorEric Biederman <[email protected]>
Wed, 4 Feb 2009 23:12:25 +0000 (15:12 -0800)
committerLinus Torvalds <[email protected]>
Thu, 5 Feb 2009 20:56:49 +0000 (12:56 -0800)
commit33da8892a2f9e7d4b2d9a35fc80833ba2d2b1aa6
tree4261b553653438775461fd408669f1942a383d2e
parent361916a943cd9dbda1c0b00879d0225cc919d868
seq_file: move traverse so it can be used from seq_read

In 2.6.25 some /proc files were converted to use the seq_file
infrastructure.  But seq_files do not correctly support pread(), which
broke some usersapce applications.

To handle pread correctly we can't assume that f_pos is where we left it
in seq_read.  So move traverse() so that we can eventually use it in
seq_read and do thus some day support pread().

Signed-off-by: Eric Biederman <[email protected]>
Cc: Paul Turner <[email protected]>
Cc: Alexey Dobriyan <[email protected]>
Cc: Al Viro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/seq_file.c